first commit
This commit is contained in:
20
nginx/default.conf
Normal file
20
nginx/default.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
upstream django {
|
||||
server django:8001;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
listen 8001;
|
||||
|
||||
location / {
|
||||
proxy_pass http://django;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
location /static/ {
|
||||
autoindex on;
|
||||
alias /django/static/;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user