Skip to content

Commit

Permalink
Better reverse proxying, also fixes it for qBittorrent
Browse files Browse the repository at this point in the history
  • Loading branch information
Twanislas committed Oct 16, 2018
1 parent 83322f0 commit 2c7fda1
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,52 @@ http {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
}

location /radarr/ {
proxy_pass http://radarr:7878;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
}

location /jackett/ {
proxy_pass http://jackett:9117;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
}

location /plexpy/ {
proxy_pass http://plexpy:8181;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
}

location /qbittorrent/ {
proxy_pass http://qbittorrent:8081;
proxy_pass http://qbittorrent:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name:$server_port;
proxy_hide_header Referer;
proxy_hide_header Origin;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header Referer '';
proxy_set_header Origin '';
proxy_set_header Origin '';
add_header X-Frame-Options "SAMEORIGIN";
}
}
}
}

0 comments on commit 2c7fda1

Please sign in to comment.