update nginx.conf

This commit is contained in:
2024-07-03 13:20:13 +01:00
parent 0ce409bcce
commit 47ab6b91a8
6 changed files with 101 additions and 23 deletions
+4
View File
@@ -10,6 +10,9 @@ server {
server_name paperless.tryton.geeraert.eu www.paperless.tryton.geeraert.eu;
location / {
proxy_pass http://paperless_backend;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Real-IP $remote_addr;#
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /.well-known/acme-challenge/ {
root /var/www/certbot;
@@ -23,6 +26,7 @@ server {
}
server {
if ($host = www.paperless.tryton.geeraert.eu) {
return 301 https://$host$request_uri;