Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Booksonic

Featured Replies

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.

  • Replies 86
  • Views 24.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Fixed image has now been pushed to the repo. It had broken due to the booksonic dev renaming the repo. Looks like they're rebasing booksonic on airsonic currently so we will switch to that once it is

  • You are running the latest version. It's just the author of booksonic that doesn't know how to make a proper release on github. If you check the release tab and check out the 2 commits to master after

  • Tags go after the repository entry   ie: instead of linuxserver/booksonic you would use linuxserver/booksonic:whateverTag  The appropriate tags are listed in the dockerHub page link on the O

Posted Images

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;
    }
}

 

 

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 by huladaddy
update

  • 4 months later...

I can't get http or https to work.  I can not figure out how to configurre NGINX with a docker variable CONTEST_PATH

 

1508408453_ScreenShot2021-06-12at10_00_12AM.png.9ba96e60d6ba657afb3e3b6183c778c1.png

 

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.

 

239082962_ScreenShot2021-06-12at9_50_11AM.png.53418a54bdd355da1e9d5816da736d89.png

 

- 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.

 

 

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

 

1508408453_ScreenShot2021-06-12at10_00_12AM.png.9ba96e60d6ba657afb3e3b6183c778c1.png

 

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.

 

239082962_ScreenShot2021-06-12at9_50_11AM.png.53418a54bdd355da1e9d5816da736d89.png

 

- 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.

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:

  1. Login from docker app the URL consist of the http://ip:port and everything works...  Click on setting and I can configure.
  2. Login from my domain the URL is http://sub.domain.com:port and when I click on setting, nothing happens.

 

Any Idea's?

Edited by Mystic

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:

  1. Login from docker app the URL consist of the http://ip:port and everything works...  Click on setting and I can configure.
  2. 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?

Yes, sorry should have mention that.

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.

  • 11 months later...

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?

  • 2 months later...

Hello

 

keep getting this

 

"Error: Invalid or corrupt jarfile booksonic.war "

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.

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.