Ga naar hoofdinhoud
50% korting alle plannen, beperkte tijd. Vanaf $2.48/mo
Audiobookshelf

Audiobookshelf

Audiobookshelf is een zelf-gehoste open-source mediaserver voor je luisterboeken en podcasts. Stream je bibliotheek naar elk apparaat, houd luistervoortgang bij tussen sessies en houd je collectie privé.

In een oogopslag

13.5k

GitHub-sterren

11

Paginaweergaven

Licentie GPL-3.0 Versie Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4

Toegang

  • URL openen: https://<SERVER_IP>
  • Accepteer de certificaatwaarschuwing van de browser (het certificaat is zelfondertekend)
  • Volg de installatiewizard om de rootgebruiker aan te maken

Belangrijke bestanden en mappen

  • Config File: /etc/default/audiobookshelf
  • Service File: /lib/systemd/system/audiobookshelf.service
  • Nginx Configuratie: /etc/nginx/sites-available/audiobookshelf
  • SSL-certificaat: /etc/nginx/ssl/fullchain.pem
  • SSL privésleutel: /etc/nginx/ssl/privkey.pem
  • Access Log: /var/log/nginx/audiobookshelf.access.log
  • Error Log: /var/log/nginx/audiobookshelf.error.log

Servicebeheer

Controleer de servicestatus:

systemctl status audiobookshelf

Service opnieuw starten:

systemctl restart audiobookshelf

Service stoppen:

systemctl stop audiobookshelf

Service starten:

systemctl start audiobookshelf

Logs bekijken:

journalctl -u audiobookshelf -f

Nginx beheren

Testconfiguratie:

nginx -t

Nginx opnieuw starten:

systemctl restart nginx

Nginx herladen:

systemctl reload nginx

Nginx-status controleren:

systemctl status nginx

SSL inschakelen met een domein

1. Wijs je domein naar het server-IP.

2. Install Certbot:

apt install -y certbot python3-certbot-nginx

3. Generate a Let's Encrypt certificate:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

4. Replace SSL paths in Nginx config:

vim /etc/nginx/sites-available/audiobookshelf
# Before:
    # ssl_certificate     /etc/nginx/ssl/fullchain.pem;
    # ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
    # ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    # ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;

5. Replace server_name _; with your domain in both HTTP and HTTPS blocks:

vim /etc/nginx/sites-available/audiobookshelf
# Before:
    server_name: _;
# After:
    server_name: yourdomain.com;

6. Reload Nginx:

systemctl reload nginx

Opmerkingen

  • Audiobookshelf draait als een native systemd-service
  • Nginx acts as a reverse proxy and TLS terminator
  • HTTPS is standaard ingeschakeld met een zelfondertekend certificaat
  • Large uploads are supported (client_max_body_size 10240M)
  • Audiobookshelf listens on 127.0.0.1:13378 and is only accessible through Nginx

Meer in Self-hosted

Gerelateerde apps.

Deploy Audiobookshelf now. Vanaf $2,48/mnd.