Add torrent and fix issues

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
2022-11-24 20:17:35 +01:00
parent 20d8f9efb7
commit a621691c65
5 changed files with 123 additions and 66 deletions

View File

@ -1,4 +1,4 @@
include /etc/nginx/conf.d/sub/cache-proxy.conf;
#include /etc/nginx/conf.d/sub/cache-proxy.conf;
upstream phpmyadmin_server {
# ip_hash;
@ -20,23 +20,27 @@ server {
location / {
proxy_pass http://phpmyadmin_server;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-Proto $scheme;
#proxy_set_header X-Forwarded-Host $host:$server_port;
#proxy_set_header X-Forwarded-Server $host;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache PROXY;
proxy_cache_valid 200 302 10m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;
proxy_cache_lock on;
# Uncomment if you want to enable proxy cache
#proxy_cache PROXY;
#proxy_cache_valid 200 302 10m;
#proxy_cache_valid 301 1h;
#proxy_cache_valid any 1m;
#proxy_cache_lock on;
proxy_ignore_headers Vary;
proxy_hide_header Vary;
#proxy_ignore_headers Vary;
#proxy_hide_header Vary;
add_header X-cache $upstream_cache_status;
#add_header X-cache $upstream_cache_status;
}
# resolver 8.8.8.8;

View File

@ -0,0 +1,27 @@
upstream qbittorrent_server {
# ip_hash;
server qbittorrent:8080;
# server qbittorrent:8080 weight=1 max_fails=3 fail_timeout=30s;
}
# PHPmyadmin
server {
listen 80;
listen [::]:80;
#listen 443;
#listen [::]:443;
server_name qbittorrent.bensuperpc.org www.qbittorrent.bensuperpc.org;
include /etc/nginx/conf.d/sub/gzip.conf;
location / {
proxy_pass http://qbittorrent_server;
proxy_redirect off;
proxy_set_header X-Forwarded-Host $http_host;
#proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
}
# resolver 8.8.8.8;
}