portier/docker/nginx.conf

24 lines
485 B
Nginx Configuration File
Raw Normal View History

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;
proxy_pass http://127.0.0.1:8000;
}
location /static {
alias /app/staticfiles;
}
}
}