I install airsonic in docker. Receiving 502 Bad Gateway error. I am trying to use reverse proxy and letsencrypt to access airsonic from internet. Any help, please?
This is my airsonic.subfolder.conf, which, I'm sure, is wrong
Code
# set the CONTEXT_PATH variable to /airsonic in airsonic container.
location ^~ /airsonic {
proxy_pass https://my url/airsonic;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 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.c$
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_airsonic airsonic;
proxy_pass http://$upstream_airsonic:4040;
Alles anzeigen
And my docker configuration