mirror of
https://gitea.zaclys.com/yannic/selfhosting.git
synced 2026-04-26 01:00:41 +02:00
deluge and nginx streaming
This commit is contained in:
@@ -17,19 +17,10 @@ services:
|
||||
- ${DELUGE_TORRENT_PORT}:${DELUGE_TORRENT_PORT}/udp
|
||||
volumes:
|
||||
- deluge_config:/config:rw
|
||||
- deluge_downloads:/downloads:rw
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.deluge.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_DELUGE}`)
|
||||
- traefik.http.routers.deluge.entrypoints=websecure
|
||||
- traefik.http.routers.deluge.tls=true
|
||||
- traefik.http.services.deluge.loadbalancer.server.port=8112
|
||||
- traefik.http.routers.deluge.middlewares=delugeHeader,sameOriginHeader,delugeRedir,delugePStrip
|
||||
- traefik.http.middlewares.delugeHeader.headers.customrequestheaders.X-Deluge-Base=${PATH_DELUGE}/
|
||||
- traefik.http.middlewares.sameOriginHeader.headers.customrequestheaders.X-Frame-Options=SAMEORIGIN
|
||||
- traefik.http.middlewares.delugePStrip.stripprefix.prefixes=${PATH_DELUGE}
|
||||
- traefik.http.middlewares.delugeRedir.redirectregex.regex=^(.*)${PATH_DELUGE}$$
|
||||
- traefik.http.middlewares.delugeRedir.redirectregex.replacement=$${1}${PATH_DELUGE}/
|
||||
- deluge_downloads:/downloads:rw
|
||||
environment:
|
||||
- VIRTUAL_HOST=${HOST_DELUGE}.${DOMAIN}
|
||||
- VIRTUAL_PORT=8112
|
||||
|
||||
torrent:
|
||||
container_name: torrent
|
||||
@@ -41,19 +32,9 @@ services:
|
||||
- deluge_downloads:/downloads:ro
|
||||
expose:
|
||||
- 80
|
||||
# shortcut to bypass traefik limitation
|
||||
ports:
|
||||
- ${DOWNLOAD_HTTP_PORT}:80
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.torrent.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_TORRENT}`)
|
||||
- traefik.http.routers.torrent.entrypoints=websecure
|
||||
- traefik.http.routers.torrent.tls=true
|
||||
- traefik.http.services.torrent.loadbalancer.server.port=80
|
||||
- traefik.http.routers.torrent.middlewares=torrentRedir,torrentPStrip
|
||||
- traefik.http.middlewares.torrentPStrip.stripprefix.prefixes=${PATH_TORRENT}
|
||||
- traefik.http.middlewares.torrentRedir.redirectregex.regex=^(.*)${PATH_TORRENT}$$
|
||||
- traefik.http.middlewares.torrentRedir.redirectregex.replacement=$${1}${PATH_TORRENT}/
|
||||
environment:
|
||||
- VIRTUAL_HOST=${HOST_DELUGE_DOWNLOAD}.${DOMAIN}
|
||||
- HTTPS_METHOD=nohttps
|
||||
|
||||
volumes:
|
||||
deluge_config:
|
||||
|
||||
Reference in New Issue
Block a user