ข้ามไปยังเนื้อหาหลัก
ลด 50% ทุกแพลน เวลาจำกัด เริ่มต้นที่ $2.48/mo
Audiobookshelf

Audiobookshelf

Audiobookshelf คือเซิร์ฟเวอร์มีเดียโอเพนซอร์สที่โฮสต์เองสำหรับหนังสือเสียงและพอดแคสต์ของคุณ สตรีมคลังของคุณไปยังอุปกรณ์ใดก็ได้ ติดตามความคืบหน้าการฟังข้ามเซสชัน และเก็บคอลเลกชันของคุณให้เป็นส่วนตัว

ภาพรวม

13.5k

GitHub stars

11

การดูหน้า

สัญญาอนุญาต GPL-3.0 เวอร์ชัน Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4

การเข้าถึง

  • เปิด URL: https://<SERVER_IP>
  • ยอมรับคำเตือนใบรับรองของเบราว์เซอร์ (ใบรับรองเป็นแบบ self-signed)
  • ทำตามวิซาร์ดการตั้งค่าเริ่มต้นเพื่อสร้างผู้ใช้ root

ไฟล์และไดเรกทอรีที่สำคัญ

  • Config File: /etc/default/audiobookshelf
  • Service File: /lib/systemd/system/audiobookshelf.service
  • การตั้งค่า Nginx: /etc/nginx/sites-available/audiobookshelf
  • ใบรับรอง SSL: /etc/nginx/ssl/fullchain.pem
  • คีย์ส่วนตัว SSL: /etc/nginx/ssl/privkey.pem
  • Access Log: /var/log/nginx/audiobookshelf.access.log
  • Error Log: /var/log/nginx/audiobookshelf.error.log

การจัดการบริการ

ตรวจสอบสถานะของ service:

systemctl status audiobookshelf

รีสตาร์ทบริการ:

systemctl restart audiobookshelf

หยุดบริการ:

systemctl stop audiobookshelf

เริ่มบริการ

systemctl start audiobookshelf

ดู logs:

journalctl -u audiobookshelf -f

การจัดการ Nginx

การตั้งค่าการทดสอบ:

nginx -t

รีสตาร์ท Nginx:

systemctl restart nginx

รีโหลด Nginx:

systemctl reload nginx

ตรวจสอบสถานะ Nginx:

systemctl status nginx

เปิดใช้งาน SSL กับโดเมน

1. ชี้โดเมนของคุณไปยัง IP ของ server

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

หมายเหตุ

  • Audiobookshelf ทำงานเป็นบริการ systemd แบบ native
  • Nginx acts as a reverse proxy and TLS terminator
  • HTTPS เปิดใช้งานด้วยใบรับรอง self-signed โดยค่าเริ่มต้น
  • Large uploads are supported (client_max_body_size 10240M)
  • Audiobookshelf listens on 127.0.0.1:13378 and is only accessible through Nginx

เพิ่มเติมใน Self Hosted

แอปที่เกี่ยวข้อง

Deploy Audiobookshelf now. เริ่มต้น $2.48/เดือน