1
0
Fork 0

Fixing nginx-config misunderstanding.

This commit is contained in:
Jason Kelly 2021-05-23 14:27:02 +08:00
parent 6e655cb0e0
commit 318e0bf508
2 changed files with 62 additions and 3 deletions

View file

@ -1,3 +1,5 @@
include /etc/nginx/conf.d/server_config;
upstream web {
server web:8000;
}
@ -5,8 +7,6 @@ upstream web {
server {
listen 80;
include /etc/nginx/conf.d/server_config;
location / {
proxy_pass http://web;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;