fix: 🐛 fix reverse-proxy proxy pass to upstream urls

This commit is contained in:
Collin M. Barrett 2020-08-25 04:21:21 -05:00
parent 703807c976
commit a946ea8990
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ server {
location ^~ /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://api:80;
proxy_pass http://filterlists.directory.api:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
@ -14,7 +14,7 @@ server {
}
location / {
proxy_pass http://web:80;
proxy_pass http://filterlists.web:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;

View file

@ -11,7 +11,7 @@ server {
location ^~ /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://api:80;
proxy_pass http://filterlists.directory.api:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
@ -22,7 +22,7 @@ server {
}
location / {
proxy_pass http://web:80;
proxy_pass http://filterlists.web:80;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;