sanitize all user inputs, fix #2172

This commit is contained in:
Amruth Pillai
2025-01-24 23:53:45 +01:00
parent 308a8e3ae3
commit c7ae0e94d7
29 changed files with 190 additions and 99 deletions

View File

@ -52,16 +52,16 @@ services:
# Chrome Browser (for printing and previews)
chrome:
image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
image: ghcr.io/browserless/chromium:latest
restart: unless-stopped
ports:
- ${CHROME_PORT:-8080}:3000
environment:
TIMEOUT: 10000
CONCURRENT: 10
HEALTH: "true"
TOKEN: ${CHROME_TOKEN:-chrome_token}
EXIT_ON_HEALTH_FAILURE: "true"
PRE_REQUEST_HEALTH_CHECK: "true"
PROXY_HOST: "localhost"
PROXY_PORT: ${CHROME_PORT:-8080}
PROXY_SSL: "false"
volumes:
minio_data:

View File

@ -39,14 +39,14 @@ services:
# Chrome Browser (for printing and previews)
chrome:
image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
image: ghcr.io/browserless/chromium:latest
restart: unless-stopped
environment:
TIMEOUT: 10000
CONCURRENT: 10
HEALTH: "true"
TOKEN: chrome_token
EXIT_ON_HEALTH_FAILURE: "true"
PRE_REQUEST_HEALTH_CHECK: "true"
PROXY_HOST: "printer.example.com"
PROXY_PORT: 443
PROXY_SSL: "true"
app:
image: amruthpillai/reactive-resume:latest

View File

@ -34,16 +34,16 @@ services:
# Chrome Browser (for printing and previews)
chrome:
image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
image: ghcr.io/browserless/chromium:latest
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
TIMEOUT: 10000
CONCURRENT: 10
HEALTH: "true"
TOKEN: chrome_token
EXIT_ON_HEALTH_FAILURE: "true"
PRE_REQUEST_HEALTH_CHECK: "true"
PROXY_HOST: "chrome"
PROXY_PORT: 3000
PROXY_SSL: "false"
app:
image: amruthpillai/reactive-resume:latest

View File

@ -50,15 +50,15 @@ services:
# Chrome Browser (for printing and previews)
chrome:
image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
image: ghcr.io/browserless/chromium:latest
networks:
- reactive_resume_network
environment:
TIMEOUT: 10000
CONCURRENT: 10
HEALTH: "true"
TOKEN: chrome_token
EXIT_ON_HEALTH_FAILURE: "true"
PRE_REQUEST_HEALTH_CHECK: "true"
PROXY_HOST: "printer.example.com"
PROXY_PORT: 443
PROXY_SSL: "true"
deploy:
replicas: 2
restart_policy:

View File

@ -41,14 +41,14 @@ services:
# Chrome Browser (for printing and previews)
chrome:
image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
image: ghcr.io/browserless/chromium:latest
restart: unless-stopped
environment:
TIMEOUT: 10000
CONCURRENT: 10
HEALTH: "true"
TOKEN: chrome_token
EXIT_ON_HEALTH_FAILURE: "true"
PRE_REQUEST_HEALTH_CHECK: "true"
PROXY_HOST: "printer.example.com"
PROXY_PORT: 443
PROXY_SSL: "true"
labels:
- traefik.enable=true
- traefik.http.routers.printer.rule=Host(`printer.example.com`)

View File

@ -39,14 +39,14 @@ services:
# Chrome Browser (for printing and previews)
chrome:
image: ghcr.io/browserless/chromium:v2.18.0 # Upgrading to newer versions causes issues
image: ghcr.io/browserless/chromium:latest
restart: unless-stopped
environment:
TIMEOUT: 10000
CONCURRENT: 10
HEALTH: "true"
TOKEN: chrome_token
EXIT_ON_HEALTH_FAILURE: "true"
PRE_REQUEST_HEALTH_CHECK: "true"
PROXY_HOST: "printer.example.com"
PROXY_PORT: 80
PROXY_SSL: "false"
labels:
- traefik.enable=true
- traefik.http.routers.printer.rule=Host(`printer.example.com`)