Fixing nginx-config misunderstanding.
This commit is contained in:
parent
6e655cb0e0
commit
318e0bf508
2 changed files with 62 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue