Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #qbittorrent Subdomain
- # Replace DOMAIN.TLD with your domain
- server {
- listen 80;
- server_name _;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl;
- server_name qbittorrent.mydomain.com;
- ssl_certificate /nginx/ssl/mydomain.com-chain.pem;
- ssl_certificate_key /nginx/ssl/mydomain.com-key.pem;
- # ssl on;
- # ssl_session_cache builtin:1000 shared:SSL:10m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- access_log /nginx/logs/qbittorrent.access.log;
- location / {
- proxy_pass http://192.168.1.90:7950;
- # section below added for theming
- sub_filter
- '</head>'
- '<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/qbittorrent/dark.css">
- </head>';
- sub_filter_once on;
- # end of theming section
- proxy_set_header X-Forwarded-Host $host:$server_port;
- proxy_hide_header Referer;
- proxy_hide_header Origin;
- proxy_set_header Referer '';
- proxy_set_header Origin '';
- # add_header X-Frame-Options "SAMEORIGIN";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement