Skip to content

Commit

Permalink
Adding comment to avoid ending '/' at /pgapi #590
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Jan 13, 2023
1 parent 87d6346 commit 991c96c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose/default/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose/with-mysql/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 991c96c

Please sign in to comment.