-
Notifications
You must be signed in to change notification settings - Fork 1
/
sabnzbd.yml
41 lines (41 loc) · 1.73 KB
/
sabnzbd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
# SABnzbd - Binary newsgrabber (NZB downloader)
# Disable SABNnzbd's built-in HTTPS support for traefik proxy to work
# Needs trailing / if using PathPrefix
sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest
container_name: sabnzbd
security_opt:
- no-new-privileges:true
restart: unless-stopped
profiles: ["apps", "downloads", "all"]
networks:
- t3_proxy
ports:
- "8084:8080"
volumes:
- $DOCKERDIR/appdata/sabnzbd:/config
- $DOWNLOADSDIR:/data/downloads
environment:
PUID: $PUID
PGID: $PGID
TZ: $TZ
UMASK_SET: 002
labels:
- "traefik.enable=true"
# HTTP Routers Auth Bypass
- "traefik.http.routers.sabnzbd-rtr-bypass.entrypoints=websecure"
# - "traefik.http.routers.sabnzbd-rtr-bypass.rule=Host(`sabnzbd.$DOMAINNAME_HS`) && Query(`apikey`, `$SABNZBD_API_KEY`)"
- "traefik.http.routers.sabnzbd-rtr-bypass.rule=Host(`sabnzbd.$DOMAINNAME_HS`) && Header(`traefik-auth-bypass-key`, `$TRAEFIK_AUTH_BYPASS_KEY`)" # Bypass Auth for LunaSea on iOS
- "traefik.http.routers.sabnzbd-rtr-bypass.priority=100"
# HTTP Routers Auth
- "traefik.http.routers.sabnzbd-rtr.entrypoints=websecure"
- "traefik.http.routers.sabnzbd-rtr.rule=Host(`sabnzbd.$DOMAINNAME_HS`)"
- "traefik.http.routers.sabnzbd-rtr.priority=99"
# Middlewares
- "traefik.http.routers.sabnzbd-rtr-bypass.middlewares=chain-no-auth@file"
- "traefik.http.routers.sabnzbd-rtr.middlewares=chain-oauth@file"
# HTTP Services
- "traefik.http.routers.sabnzbd-rtr.service=sabnzbd-svc"
- "traefik.http.routers.sabnzbd-rtr-bypass.service=sabnzbd-svc"
- "traefik.http.services.sabnzbd-svc.loadbalancer.server.port=8080"