2020-04-25 10:22:22 +02:00
|
|
|
user nginx;
|
|
|
|
worker_processes auto;
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
location / {
|
2021-10-31 13:15:32 +01:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2020-04-25 10:22:22 +02:00
|
|
|
proxy_pass http://127.0.0.1:8000;
|
|
|
|
}
|
|
|
|
location /static {
|
|
|
|
alias /app/staticfiles;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|