From 991c96c2fe1ddcf9b04d60b8a90effcb59a83f2d Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 13 Jan 2023 14:10:01 +0100 Subject: [PATCH] Adding comment to avoid ending '/' at /pgapi #590 --- docker/docker-compose/default/nginx.conf | 2 +- docker/docker-compose/with-mysql/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose/default/nginx.conf b/docker/docker-compose/default/nginx.conf index 4e145f5b..ff91729a 100644 --- a/docker/docker-compose/default/nginx.conf +++ b/docker/docker-compose/default/nginx.conf @@ -78,7 +78,7 @@ http { # Only allow all methods (GET,POST,PUT,etc..) for root (/pgapi). # see https://github.com/bpatrik/pigallery2/issues/214 - location /pgapi { + location /pgapi { # NOTE: no ending '/' as it would forward /pgapi to / proxy_pass http://pigallery2:80; # forwarding to the other container, named 'pigallery2' proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/docker/docker-compose/with-mysql/nginx.conf b/docker/docker-compose/with-mysql/nginx.conf index 437e2931..eaf410e5 100644 --- a/docker/docker-compose/with-mysql/nginx.conf +++ b/docker/docker-compose/with-mysql/nginx.conf @@ -77,7 +77,7 @@ http { # Only allow all methods (GET,POST,PUT,etc..) for root (/pgapi). # see https://github.com/bpatrik/pigallery2/issues/214 - location /pgapi { + location /pgapi { # NOTE: no ending '/' as it would forward /pgapi to / proxy_pass http://pigallery2:80; # forwarding to the other container, named 'pigallery2' proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;