💥 add all the files
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
upstream prowlarr_backend {
|
||||
server prowlarr.servarr.svc;
|
||||
# server 192.168.88.52:31884;
|
||||
# server 1.1.1.1 ;
|
||||
#backup;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name prowlarr.tryton.geeraert.eu www.prowlarr.tryton.geeraert.eu;
|
||||
location / {
|
||||
proxy_pass http://prowlarr_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem;
|
||||
#include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = www.prowlarr.tryton.geeraert.eu) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
if ($host = prowlarr.tryton.geeraert.eu) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name www.prowlarr.tryton.geeraert.eu prowlarr.tryton.geeraert.eu;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user