fix: mount nginx.conf, add proxy_pass_request_headers on

This commit is contained in:
admin 2026-08-07 16:54:30 +00:00
parent 8bbf2ccc25
commit 85f6d42920

View file

@ -72,6 +72,7 @@ docker run -d \\
-e WALLARM_API_HOST={api_host} \\ -e WALLARM_API_HOST={api_host} \\
-e WALLARM_MODE={mode} \\ -e WALLARM_MODE={mode} \\
-e NGINX_BACKEND={upstream} \\ -e NGINX_BACKEND={upstream} \\
-v {host_dir}/nginx.conf:/etc/nginx/http.d/default.conf:ro \\
{WALLARM_IMAGE} {WALLARM_IMAGE}
sleep 3 sleep 3
docker ps --filter name={container} --format '{{{{.Status}}}}' docker ps --filter name={container} --format '{{{{.Status}}}}'
@ -91,6 +92,9 @@ server {{
proxy_read_timeout 300s; proxy_read_timeout 300s;
proxy_send_timeout 300s; proxy_send_timeout 300s;
# Pass all headers through — preserve auth cookies
proxy_pass_request_headers on;
location /wallarm-status {{ location /wallarm-status {{
wallarm_status on; wallarm_status on;
allow 127.0.0.0/8; allow 127.0.0.0/8;