Erişim
- URL'yi aç:
https://<SERVER_IP> - Tarayıcı sertifika uyarısını kabul edin (sertifika kendinden imzalıdır)
- Kök kullanıcıyı oluşturmak için ilk kurulum sihirbazını takip edin
Önemli Dosyalar ve Dizinler
- Config File:
/etc/default/audiobookshelf - Service File:
/lib/systemd/system/audiobookshelf.service - Nginx Yapılandırması:
/etc/nginx/sites-available/audiobookshelf - SSL Sertifikası:
/etc/nginx/ssl/fullchain.pem - SSL Özel Anahtarı:
/etc/nginx/ssl/privkey.pem - Access Log:
/var/log/nginx/audiobookshelf.access.log - Error Log:
/var/log/nginx/audiobookshelf.error.log
Servis Yönetimi
Servis durumunu kontrol edin:
systemctl status audiobookshelf
Servisi yeniden başlat:
systemctl restart audiobookshelf
Hizmeti Durdur:
systemctl stop audiobookshelf
Hizmeti Başlat:
systemctl start audiobookshelf
Logları göster:
journalctl -u audiobookshelf -f
Nginx yönetimi
Test yapılandırması:
nginx -t
Nginx'i Yeniden Başlat:
systemctl restart nginx
Nginx'i yeniden yükle:
systemctl reload nginx
Nginx durumunu kontrol et:
systemctl status nginx
Bir Alan Adı ile SSL Etkinleştirme
1. Alan adını sunucu IP'sine yönlendir.
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
Notlar
- Audiobookshelf, yerel bir systemd hizmeti olarak çalışır
- Nginx acts as a reverse proxy and TLS terminator
- HTTPS, varsayılan olarak kendinden imzalı sertifika kullanılarak etkinleştirilmiştir
- Large uploads are supported (
client_max_body_size 10240M) - Audiobookshelf listens on
127.0.0.1:13378and is only accessible through Nginx