file updated due to Terraform, purge some useles files as well
This commit is contained in:
Executable → Regular
+22
-16
@@ -1,38 +1,44 @@
|
||||
#config file for Paperless
|
||||
############################################
|
||||
# config file for paperless
|
||||
############################################
|
||||
|
||||
upstream paperless_backend {
|
||||
server webserver.paperless.svc:8000;
|
||||
server 1.1.1.1 backup;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name paperless.tryton.geeraert.eu www.paperless.tryton.geeraert.eu;
|
||||
server_name paperless.tryton.geeraert.eu www.paperless.tryton.geeraert.eu;
|
||||
location / {
|
||||
proxy_pass http://paperless_backend;
|
||||
proxy_pass http://paperless_backend;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
|
||||
}
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
|
||||
listen 443 ssl;
|
||||
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem;
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = www.paperless.tryton.geeraert.eu) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
if ($host = www.paperless.tryton.geeraert.eu) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
|
||||
if ($host = paperless.tryton.geeraert.eu) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
if ($host = paperless.tryton.geeraert.eu) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server_name www.paperless.tryton.geeraert.eu paperless.tryton.geeraert.eu;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
listen 80;
|
||||
return 404;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user