mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 21:11:31 -07:00
Merge pull request #227 from linuxserver/rutorrent-rpc
rutorrent: block rpc by default, it's unprotected
This commit is contained in:
commit
b50c7c8cc2
2 changed files with 30 additions and 0 deletions
|
@ -38,6 +38,21 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /RPC2 {
|
location /RPC2 {
|
||||||
|
# enable the next two lines for http auth
|
||||||
|
#auth_basic "Restricted";
|
||||||
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||||
|
|
||||||
|
# enable the next two lines for ldap auth
|
||||||
|
#auth_request /auth;
|
||||||
|
#error_page 401 =200 /ldaplogin;
|
||||||
|
|
||||||
|
# enable for Authelia
|
||||||
|
#include /config/nginx/authelia-location.conf;
|
||||||
|
|
||||||
|
# block rpc access by default because it is unprotected
|
||||||
|
# you can comment out the next line to enable remote rpc calls
|
||||||
|
deny all;
|
||||||
|
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
set $upstream_app rutorrent;
|
set $upstream_app rutorrent;
|
||||||
|
|
|
@ -27,6 +27,21 @@ location ^~ /rutorrent/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /rutorrent/RPC2 {
|
location ^~ /rutorrent/RPC2 {
|
||||||
|
# enable the next two lines for http auth
|
||||||
|
#auth_basic "Restricted";
|
||||||
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||||
|
|
||||||
|
# enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
|
||||||
|
#auth_request /auth;
|
||||||
|
#error_page 401 =200 /ldaplogin;
|
||||||
|
|
||||||
|
# enable for Authelia, also enable authelia-server.conf in the default site config
|
||||||
|
#include /config/nginx/authelia-location.conf;
|
||||||
|
|
||||||
|
# block rpc access by default because it is unprotected
|
||||||
|
# you can comment out the next line to enable remote rpc calls
|
||||||
|
deny all;
|
||||||
|
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
set $upstream_app rutorrent;
|
set $upstream_app rutorrent;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue