Great, thanks! It helped a lot.
Once I figured out that you set URL base in the settings of each application, everything (except Plexpy) works.
My setup is:
server {
listen 443 ssl default_server;
root /config/www;
index index.html index.htm index.php;
server_name servername.*;
ssl_certificate /config/keys/letsencrypt/fullchain.pem;
ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
ssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers 'XXXX';
ssl_prefer_server_ciphers on;
client_max_body_size 0;
location / {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
proxy_pass http://192.168.X.X:81;
}
location ^~ /nzbget {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
proxy_pass http://192.168.X.X:6789/nzbget;
}
location ^~ /sonarr {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
proxy_pass http://192.168.X.X:8989/sonarr;
}
location ^~ /cp {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
proxy_pass http://192.168.X.X:5050/cp;
}
location ^~ /plexpy {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
proxy_pass http://192.168.X.X:8181/plexpy;
}
location ^~ /web {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
proxy_pass http://192.168.X.X:32400;
}
I can't get Plexpy to work, though, even though I've followed the instructions for the proxying headers here: https://github.com/JonnyWong16/plexpy/wiki/Frequently-Asked-Questions-%28FAQ%29#q-why-does-plexpy-not-work-with-my-reverse-proxy-setup
I don't relly need Plexpy to work right now, but it would be good so the setup is complete..