From e752c6d9c9f39c4057be4f001f3be20117d335de Mon Sep 17 00:00:00 2001 From: Nick Satterly Date: Tue, 9 Apr 2024 13:58:33 +0200 Subject: [PATCH] nginx debug --- config/templates/app/nginx.conf.j2 | 2 ++ tests/docker-compose.test.mongodb.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/templates/app/nginx.conf.j2 b/config/templates/app/nginx.conf.j2 index 4327eb2f..1a464578 100644 --- a/config/templates/app/nginx.conf.j2 +++ b/config/templates/app/nginx.conf.j2 @@ -49,10 +49,12 @@ http { location /api { proxy_pass http://backend; + proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; + proxy_set_header Connection ""; } root /web; diff --git a/tests/docker-compose.test.mongodb.yml b/tests/docker-compose.test.mongodb.yml index d9ca5d62..9a3912cb 100644 --- a/tests/docker-compose.test.mongodb.yml +++ b/tests/docker-compose.test.mongodb.yml @@ -14,7 +14,7 @@ services: depends_on: - db environment: - # - DEBUG=1 # remove this line to turn DEBUG off + - DEBUG=1 # remove this line to turn DEBUG off - LOG_LEVEL=error # debug, info, warn (default), or error - SECRET_KEY=super-secret - DATABASE_URL=mongodb://db:27017/monitoring