ansible/roles/docker/templates/mii/swag/site-confs/qbittorrent.subdomain.conf

85 lines
2.4 KiB
Plaintext

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ qbit_host }}.{{ backup_domain }};
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
location ~ (/qbittorrent)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
location ~ (/qbittorrent)?/command {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
location ~ (/qbittorrent)?/query {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
location ~ (/qbittorrent)?/login {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
location ~ (/qbittorrent)?/sync {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
location ~ (/qbittorrent)?/scripts {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header X-Forwarded-Host $host;
}
}