remove frontend files to run environment.
This commit is contained in:
25
nginx.conf
25
nginx.conf
@@ -1,25 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name donconfiao.org;
|
||||
|
||||
# location /frontend {
|
||||
# alias /var/www/frontend/;
|
||||
# autoindex on;
|
||||
# }
|
||||
|
||||
location /frontend {
|
||||
proxy_pass http://frontend:3000/frontend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://django:9090;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user