All requests through SWAG not being redirected and landing on the SWAG landing page

Running SWAG and radarr on the same host with macvlan network driver. Installed via Portainer. I can connect to radarr’s URL myself and both containers can ping each other. DNS entry points to SWAG. However, when I navigate to https://radarr.mydomain.example, I just get the SWAG landing page. Cleared cache, tried incofgnito mode and another browser and same result. No errors in the swag’s nginx logs and the access logs are just showing inbound connections from me.

192.168.2.10 - - [18/Apr/2021:15:25:18 +0000] "GET / HTTP/2.0" 200 584 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36"
192.168.2.10 - - [18/Apr/2021:15:25:18 +0000] "GET /favicon.ico HTTP/2.0" 200 584 "https://radarr.lan.somedomain.net/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36"

I commented out the proxy_pass and tried it without the variables but I am still getting redirected to SWAG’s landing page.

server {
   listen 443 ssl;
    listen [::]:443 ssl;

    server_name radarr.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # 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;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        #set $upstream_app radarr;
        set $upstream_app 192.168.1.120;
        set $upstream_port 7878;
        set $upstream_proto http;
        #proxy_pass $upstream_proto://$upstream_app:$upstream_port;
	proxy_pass http://192.168.1.120:7878;

    }

    location ~ (/radarr)?/api {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        #set $upstream_app radarr;
	set $upstream_app 192.168.1.120;
        set $upstream_port 7878;
        set $upstream_proto http;
        #proxy_pass $upstream_proto://$upstream_app:$upstream_port;
	proxy_pass http://192.168.1.120:7878;

        }
    }

I am migrating these dockers off unraid into fresh installs in Portainer and it worked there, so I think I missed something in the config here but not sure what.

Solved. I had renamed the confs to radarr.myactualdomain.conf instead of radarr.subdomain.conf. On unraid I had edited the config to actually look at the confs as *.myactualdomain.conf instead of .subdomain, so that confused me.

1 Like