initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
audiobookshelf:
|
||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
||||
container_name: audiobookshelf
|
||||
network_mode: host
|
||||
environment:
|
||||
- TZ=America/New_York
|
||||
- PORT=13378
|
||||
volumes:
|
||||
- /home/ray/docker/audiobookshelf/config:/config
|
||||
- /home/ray/docker/audiobookshelf/metadata:/metadata
|
||||
- /path/to/audiobooks:/audiobooks:ro
|
||||
restart: unless-stopped
|
||||
@@ -0,0 +1,29 @@
|
||||
server {
|
||||
listen 3443 ssl;
|
||||
server_name YOUR_DOMAIN.duckdns.org;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN.duckdns.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN.duckdns.org/privkey.pem;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
client_max_body_size 500M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:13378;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 86400;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name YOUR_DOMAIN.duckdns.org;
|
||||
return 301 https://$host:3443$request_uri;
|
||||
}
|
||||
Reference in New Issue
Block a user