Skip to content

Commit

Permalink
Fix reverse proxy parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Sep 13, 2023
1 parent 19e520c commit 6e66036
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ server {
proxy_set_header Connection $connection_upgrade;
}

location ~ ^/postgrest(/?)(.*) {
set $upstream http://postgrest:3000/$2;
location /postgrest/ {
set $upstream http://postgrest:3000/;
proxy_pass $upstream;
}

location ~ ^/pgweb(/?)(.*) {
set $upstream http://pgweb:8081/$2;
location /pgweb/ {
set $upstream http://pgweb:8081/;
proxy_pass $upstream;
}
}

0 comments on commit 6e66036

Please sign in to comment.