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