User Tools

Differences

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

Link to this comparison view

Next revision
Previous revision
services:audiobookshelf [2024/03/26 19:35] – created willyservices:audiobookshelf [2024/08/06 13:21] (current) – [Installation] willy
Line 21: Line 21:
       - 13378:80       - 13378:80
     volumes:     volumes:
-      - /data/Media/Audiobooks/:/audiobooks +      - /data/Audiobooks/:/audiobooks 
-      - /data/Media/Podcasts:/podcasts+      - /data/Podcasts:/podcasts
       - /data/daemons/audiobookshelf/config:/config       - /data/daemons/audiobookshelf/config:/config
-      - /data/media/Metadata:/metadata+      - /data/Metadata:/metadata
     environment:     environment:
       - TZ=Europe/Rome       - TZ=Europe/Rome
Line 32: Line 32:
 Double check the various volumes to point to your media collection properly. Also set your TimeZone (TZ) appropriately. Double check the various volumes to point to your media collection properly. Also set your TimeZone (TZ) appropriately.
  
 +Now ensure your folders do exist:
 +<code bash>
 +mkdir /data/Podcasts
 +mkdir /data/Audiobooks
 +mkdir /data/Metadata
 +chown audiobookshelf:media -R /data/Podcasts /data/Audiobooks /data/Metadata
 +su - audiobookshelf
 +mkdir config
 +</code>
 +
 +And then pull the images:
 +<code bash>
 +su - audiobookshelf
 +podman compose pull
 +</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