I am using a domain name, as I already had one. So I set up swag with qbittorrent, sonarr and radarr with no issues using those containers. I am trying to get sabnzbd working, but I can't seem to access it using the subdomain (works fine if I use local IP and port). The browser is not giving an error message, just a blank white screen with the favicon in the tab. The only entry in the nginx log for the subdomain is:
[04/Oct/2023:09:50:11 -0400] "GET /favicon.ico HTTP/2.0" 200 5430 "https://nzb.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
I did remove the url_base setting from the sabnzbd config. I also added the subdomains to the host_whitelist setting to the sabnzbd config as mentioned in the sabnzbd.subdomain.conf file from nginx.
This is my sabnzbd.subdomain.conf file:
## Version 2023/05/31
# make sure that your sabnzbd container is named sabnzbd
# make sure that your dns has a cname set for sabnzbd
# edit the sabnzbd.ini host_whitelist to avoid hostname verification issues. This format:
# host_whitelist = sabnzbd.domain.com, www.sabnzbd.domain.com
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name nzb.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth (requires ldap-location.conf in the location block)
#include /config/nginx/ldap-server.conf;
# enable for Authelia (requires authelia-location.conf in the location block)
#include /config/nginx/authelia-server.conf;
# enable for Authentik (requires authentik-location.conf in the location block)
#include /config/nginx/authentik-server.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable for ldap auth (requires ldap-server.conf in the server block)
#include /config/nginx/ldap-location.conf;
# enable for Authelia (requires authelia-server.conf in the server block)
#include /config/nginx/authelia-location.conf;
# enable for Authentik (requires authentik-server.conf in the server block)
#include /config/nginx/authentik-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app sabnzbd;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/sabnzbd)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app sabnzbd;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
The sabnzbd container in UnRAID is using 6060 (but in the sabnzbd config, it is still using 8080), as the qBittorrent container is using 8080. I tried changing the "set $upstream_port" entry to 6060, and I see the "Bad Gateway" message from nginx.
Any suggestions on what might be wrong?
EDIT:
After messing around with this for most of the day, I noticed that if I attempt to load via my subdomain, I get this message in the nginx access.log:
[04/Oct/2023:14:02:56 -0400] "GET / HTTP/2.0" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
The http_referrer is "-". Does this mean the CNAME entry for my domain is not sending the subdomain? All my CNAME entries are the same, so I'm not sure why this one is working differently than the others.