[SOLVED] Airsonic 502 Bad Gateway error

    • OMV 4.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • [SOLVED] Airsonic 502 Bad Gateway error

      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

      Source Code

      1. # set the CONTEXT_PATH variable to /airsonic in airsonic container.
      2. location ^~ /airsonic {
      3. proxy_pass https://my url/airsonic;
      4. proxy_set_header X-Real-IP $remote_addr;
      5. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      6. # enable the next two lines for http auth
      7. #auth_basic "Restricted";
      8. #auth_basic_user_file /config/nginx/.htpasswd;
      9. # enable the next two lines for ldap auth, also customize and enable ldap.c$
      10. #auth_request /auth;
      11. #error_page 401 =200 /login;
      12. include /config/nginx/proxy.conf;
      13. resolver 127.0.0.11 valid=30s;
      14. set $upstream_airsonic airsonic;
      15. proxy_pass http://$upstream_airsonic:4040;
      Display All

      And my docker configuration

    • join airsonic in the network of the docker container an try this conf

      Source Code

      1. # set the CONTEXT_PATH variable to /airsonic in airsonic container.
      2. location ^~ /airsonic {
      3. # enable the next two lines for http auth
      4. #auth_basic "Restricted";
      5. #auth_basic_user_file /config/nginx/.htpasswd;
      6. # enable the next two lines for ldap auth, also customize and enable ldap.c$
      7. #auth_request /auth;
      8. #error_page 401 =200 /login;
      9. include /config/nginx/proxy.conf;
      10. resolver 127.0.0.11 valid=30s;
      11. set $upstream_airsonic airsonic;
      12. proxy_pass http://$upstream_airsonic:80;
      Display All