45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
############################################
|
|
# config file for qbittorrent
|
|
############################################
|
|
|
|
upstream qbittorrent_backend {
|
|
server qbittorrent.servarr.svc:8080;
|
|
server 1.1.1.1 backup;
|
|
}
|
|
|
|
server {
|
|
server_name qbittorrent.tryton.geeraert.eu www.qbittorrent.tryton.geeraert.eu;
|
|
location / {
|
|
proxy_pass http://qbittorrent_backend;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
}
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/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.qbittorrent.tryton.geeraert.eu) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
|
|
if ($host = qbittorrent.tryton.geeraert.eu) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server_name www.qbittorrent.tryton.geeraert.eu qbittorrent.tryton.geeraert.eu;
|
|
listen 80;
|
|
return 404;
|
|
|
|
}
|