huladaddy Posted January 14, 2021 Share Posted January 14, 2021 I can't seem to get booksonic-air working behind a nginx reverse proxy. I am using a .conf modeled after the airsonic .conf that is working fine for me. I just get a 502 Bad Gateway. Quote Link to comment
BrandonG777 Posted January 14, 2021 Share Posted January 14, 2021 8 hours ago, huladaddy said: I can't seem to get booksonic-air working behind a nginx reverse proxy. I am using a .conf modeled after the airsonic .conf that is working fine for me. I just get a 502 Bad Gateway. this is what i'm using with air # make sure that your dns has a cname set for booksonic and that your booksonic container is not using a base url server { listen 443 ssl; listen [::]:443 ssl; server_name booksonic.*; include /config/nginx/ssl.conf; client_max_body_size 0; location / { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_booksonic booksonic-air; proxy_pass http://$upstream_booksonic:4040; } } Quote Link to comment
huladaddy Posted January 14, 2021 Share Posted January 14, 2021 (edited) Virtually the same as I am using. I can get there locally without going through the reverse proxy. What am I missing? # make sure that your dns has a cname set for booksonic and that your booksonic container is not using a base url server { listen 443 ssl; listen [::]:443 ssl; server_name audiobooks.*; 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 booksonic-air; set $upstream_port 4040; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } } I figured this out. Had Network Type set to Bridge instead of Custom: proxynet Edited January 18, 2021 by huladaddy update Quote Link to comment
Mystic Posted June 12, 2021 Share Posted June 12, 2021 I can't get http or https to work. I can not figure out how to configurre NGINX with a docker variable CONTEST_PATH with Context_Path booksonic = http://sub.dommain.com:4040/booksonic - I can't configure Nginx with a sub after port. w/o Context_Path = http://sub.domain.com:4040 - this works but then settings and other menus can not be accessed. - Router is port forwarded to 4040 - Latest version of Unraid | ROG CROSSHAIR VIII HERO (WI-FI) | AMD Ryzen 9 3900X 12-Core @ 3800 MHz - NO-IP subdomain = audio and DNS pointing to domain.com. The URL is http://10.10.1.5:4040/booksonic/ - HOW do I configure this in Nginx, I can not figure it out. With the variable everything works but I get BAD GATEWAY when accessing it with my domain. Quote Link to comment
saarg Posted June 12, 2021 Share Posted June 12, 2021 36 minutes ago, Mystic said: I can't get http or https to work. I can not figure out how to configurre NGINX with a docker variable CONTEST_PATH with Context_Path booksonic = http://sub.dommain.com:4040/booksonic - I can't configure Nginx with a sub after port. w/o Context_Path = http://sub.domain.com:4040 - this works but then settings and other menus can not be accessed. - Router is port forwarded to 4040 - Latest version of Unraid | ROG CROSSHAIR VIII HERO (WI-FI) | AMD Ryzen 9 3900X 12-Core @ 3800 MHz - NO-IP subdomain = audio and DNS pointing to domain.com. The URL is http://10.10.1.5:4040/booksonic/ - HOW do I configure this in Nginx, I can not figure it out. With the variable everything works but I get BAD GATEWAY when accessing it with my domain. You don't use context path for subdomain. It's only for subfolder. Quote Link to comment
Mystic Posted June 12, 2021 Share Posted June 12, 2021 (edited) Thanks for the response and confirmation of what I figured.... Now the challenge is why Booksonic will not permit access to any settings features. When I remove the context path from the docker and log in. As the admin, I get the following: Login from docker app the URL consist of the http://ip:port and everything works... Click on setting and I can configure. Login from my domain the URL is http://sub.domain.com:port and when I click on setting, nothing happens. Any Idea's? Edited June 12, 2021 by Mystic Quote Link to comment
saarg Posted June 12, 2021 Share Posted June 12, 2021 1 hour ago, Mystic said: Thanks for the response and confirmation of what I figured.... Now the challenge is why Booksonic will not permit access to any settings features. When I remove the context path from the docker and log in. As the admin, I get the following: Login from docker app the URL consist of the http://ip:port and everything works... Click on setting and I can configure. Login from my domain the URL is http://sub.domain.com:port and when I click on setting, nothing happens. Any Idea's? Why are you using the port when using your domain? You are reverse proxying it, right? Quote Link to comment
Mystic Posted June 12, 2021 Share Posted June 12, 2021 Yes, sorry should have mention that. Quote Link to comment
saarg Posted June 13, 2021 Share Posted June 13, 2021 11 hours ago, Mystic said: Yes, sorry should have mention that. Then you don't need to use the port and should close it. You only need port 443/80 open. Quote Link to comment
somabva Posted May 15, 2022 Share Posted May 15, 2022 Just installed - trying to connect directly through ip address, not bothering with reverse proxy. I can connect in a browser (internally or externally) but can't connect through the app using the same information. Can even connect using the 'open in browser' button in the settings/server on the app. But when I try to test the connection it fails. Anyone ever run into this issue? Quote Link to comment
Logopeden Posted July 25, 2022 Share Posted July 25, 2022 Hello keep getting this "Error: Invalid or corrupt jarfile booksonic.war " Quote Link to comment
BrandonG777 Posted July 25, 2022 Share Posted July 25, 2022 5 hours ago, Logopeden said: Hello keep getting this "Error: Invalid or corrupt jarfile booksonic.war " same here. reverted to v2201.1.0-ls61 for the time being. 2 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.