User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:audiobookshelf [2024/03/26 19:38] willyservices:audiobookshelf [2024/08/06 13:21] (current) – [Installation] willy
Line 43: Line 43:
  
 And then pull the images: And then pull the images:
-<code bash+<code bash>
 su - audiobookshelf su - audiobookshelf
 podman compose pull podman compose pull
 </code> </code>
  
 +===== Reverse Proxy =====
  
 +[[https://github.com/advplyr/audiobookshelf#reverse-proxy-set-up|This]] page is a collection of reverse proxy setups for AudioBookShelf.
  
 +This is my recomended one for NGINX:
 +<file - audiobookshelf.conf>
 +server {
 +        server_name podcast.gardiol.org;
 +        listen 8443 ssl; # external access
 +        listen 443 ssl; # internal access
 +
 +        access_log /var/log/nginx/podcast.gardiol.org_access_log main;
 +        error_log /var/log/nginx/podcast.gardiol.org_error_log info;
 +
 +        location / {
 +                     proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
 +                     proxy_set_header  X-Forwarded-Proto $scheme;
 +                     proxy_set_header  Host              $host;
 +                     proxy_set_header Upgrade            $http_upgrade;
 +                     proxy_set_header Connection         "upgrade";
 +
 +                     proxy_http_version                  1.1;
 +
 +                     proxy_pass                          http://127.0.0.1:13378;
 +                     proxy_redirect                      http:// https://;
 +                   }
 +
 +        include org.certbot.conf;
 +}
 +</file>
 +
 +Unfortunately AudioBookShelf at this time does not support yet sub-paths, so you will need to host it on a subdomain.
 +
 +===== Autostart =====
 +
 +To start it, and set it up on boot, as usual follow my indications [[gentoo:containers|Using Containers on Gentoo]], so link the **user-containers** init script:
 +<code>
 +ln -s /etc/init.d/user-containers /etc/init.d/user-containers.audiobookshelf
 +</code>
 +
 +and create the following config file:
 +<file - /etc/conf.d/user-containers.audiobookshelf>
 +USER=audiobookshelf
 +DESCRIPTION="The audiobooks and podcast server"
 +</file>
 +
 +Add the service to the default runlevel and start it now:
 +<code bash>
 +rc-update add user-containers.audiobookshelf default
 +rc-service user-containers.audiobookshelf start
 +</code>
 +
 +===== Upgrade =====
 +
 +Since it's using pdoman, stop the service then, as user **audiobookshelf**, run:
 +<code bash>
 +podman compose pull
 +</code>
 +
 +and restart the service.

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information