21 lines
399 B
Text
21 lines
399 B
Text
upstream gunicorn {
|
|
server django:8000;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
access_log /var/log/nginx/access_log;
|
|
error_log /var/log/nginx/error_log;
|
|
|
|
location /static/ {
|
|
root /app;
|
|
}
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://gunicorn;
|
|
}
|
|
}
|