villafleurie/nginx/villafleurie.conf
2019-12-30 01:51:29 +01:00

16 lines
No EOL
352 B
Text

server {
listen 80;
server_name localhost;
access_log /var/log/nginx/example.log;
location static/ {
autoindex off;
alias /static_files/;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
}