
advplyr/audiobookshelfAudiobookshelf是一个自托管的有声书和播客服务器。
如有需要的功能,可提出建议。
加入我们的***或Matrix社区。
可在Google Play商店试用。
通过Test Flight获取:[***] - 参与讨论
查看API文档构建自定义工具和客户端。
!图书馆截图
有关支持的目录结构、文件夹命名约定和音频文件元数据使用方法,请参见文档。
bashdocker run -d \ --name audiobookshelf \ -p 8080:80 \ -v /path/to/audiobooks:/books \ -v /path/to/podcasts:/podcasts \ -v /path/to/config:/config \ -v /path/to/metadata:/metadata \ --restart unless-stopped \ advplyr/audiobookshelf
参数说明:
-p 8080:80:端口映射,主机8080端口映射到容器80端口-v /path/to/audiobooks:/books:挂载有声书存储目录-v /path/to/podcasts:/podcasts:挂载播客存储目录-v /path/to/config:/config:挂载配置文件目录-v /path/to/metadata:/metadata:挂载元数据存储目录--restart unless-stopped:容器退出时自动重启(除非手动停止)更多安装方式参见安装文档。
启用WebSocket支持。
!NGINX WebSocket
修改nginx服务器站点配置文件,替换尖括号中的相关部分并插入证书路径:
bashserver { listen 443 ssl; server_name <sub>.<domain>.<tld>; access_log /var/log/nginx/audiobookshelf.access.log; error_log /var/log/nginx/audiobookshelf.error.log; ssl_certificate /path/to/certificate; ssl_certificate_key /path/to/key; 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://<URL_to_forward_to>; proxy_redirect http:// [***] } }
修改Apache服务器站点配置文件,替换尖括号中的相关部分并插入证书路径。
需启用以下模块:ssl、proxy_module、proxy_wstunnel_module、rewrite_module(使用a2enmod命令)。
bash<IfModule mod_ssl.c> <VirtualHost *:443> ServerName <sub>.<domain>.<tld> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ProxyPreserveHost On ProxyPass / http://localhost:<audiobookshelf_port>/ RewriteEngine on RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?(.*) "ws://localhost:<audiobookshelf_port>/$1" [P,L] # 证书通常由Let's Encrypt的certbot等工具生成 SSLCertificateFile /path/to/cert/file SSLCertificateKeyFile /path/to/key/file </VirtualHost> </IfModule>
参见解决方案
(来自@silentArtifact)
与CORS相关的中间件会导致应用登录时报告“未知错误”。为避免此问题,请勿将以下标头应用于此站点的路由器:
subdomain.domain.com { encode gzip zstd reverse_proxy <LOCAL_IP>:<PORT> }
参见讨论
参见“支持方式”页面
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务