Fixing nginx-config misunderstanding.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user