访问10.0.0.8/sonarr会绕过基本身份验证,而mydomain.com/sonarr不会访问。
有人可以告诉我我做错了什么
我的路由器是10.0.0.1,子网是255.255.255.0
我尝试过 10.0.0.0 10.0.0.1甚至10.0.0.0/24都适用于Subs这是我的nginx的第一个片段,我有更多代理
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 64;
server {
listen 80;
server_name _;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl;
server_name mydomain.com, 10.0.0.8;
satisfy any;
allow 10.0.0.1;
ssl_certificate mydomain.com-chain.pem;
ssl_certificate_key mydomain.com-key.pem;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_dhparam dhparam.pem;
location /{
root html;
index index.php
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /nzbget {
proxy_pass http://10.0.0.8:6789;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
satisfy any;
allow 10.0.0.0/24;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
location /plexpy {
proxy_pass http://127.0.0.1:8181/plexpy;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
satisfy any;
allow 10.0.0.0/24;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}```