2022-10-13 14:26:43 +00:00
|
|
|
upstream django {
|
|
|
|
#server app:8000;
|
2022-10-18 06:22:22 +00:00
|
|
|
#server unix:///var/run/socks/app.sock;
|
2023-08-10 17:11:40 +00:00
|
|
|
server app_dev:8000; # won't work in production mode
|
2022-10-13 14:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 9999;
|
|
|
|
|
|
|
|
location = /favicon.ico { access_log off; log_not_found off; }
|
|
|
|
|
|
|
|
location /static/ {
|
2022-10-15 21:41:41 +00:00
|
|
|
root /conf;
|
2022-10-13 14:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://django;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|