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:13378and is only accessible through Nginx