Create nginx.conf
Some checks are pending
Gitea Actions Deploy / deploy (push) Waiting to run

This commit is contained in:
Andros Fenollosa 2024-06-24 17:28:30 +02:00 committed by GitHub
parent 629280e33f
commit ccef20c148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

30
nginx.conf Normal file
View File

@ -0,0 +1,30 @@
events {}
http {
server {
listen 80 default_server;
server_name _;
location / {
proxy_pass http://django:9100;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding off;
}
location /img {
include /etc/nginx/mime.types;
alias /var/www/html/img;
}
location = /favicon.ico { access_log off; log_not_found off; }
}
}