code-snippets/infra/ansible/roles/app/files/nginx.conf

13 lines
425 B
Nginx Configuration File
Raw Permalink Normal View History

2024-09-05 13:54:08 +10:00
server {
listen 80;
server_name code.liampietralla.com;
location / {
proxy_pass http://localhost:5000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}