deluge and nginx streaming
This commit is contained in:
parent
5b183ff4e5
commit
81c5fbacbb
3 changed files with 11 additions and 28 deletions
|
@ -6,6 +6,7 @@ DOMAIN=localhost.localdomain
|
|||
HOST_BAIKAL=baikal
|
||||
HOST_BLOG=blog
|
||||
HOST_DELUGE=deluge
|
||||
HOST_DELUGE_DOWNLOAD=delugedownload
|
||||
HOST_DOKUWIKI=dokuwiki
|
||||
HOST_GLANCES=glances
|
||||
HOST_MAIL=mail
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -8,11 +8,12 @@ services:
|
|||
- 80:80
|
||||
- 443:443
|
||||
environment:
|
||||
- DEFAULT_HOST=${DOMAIN}
|
||||
- DEFAULT_HOST=${HOST_WWW}.${DOMAIN}
|
||||
- DHPARAM_GENERATION=false
|
||||
networks:
|
||||
- srv
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ${ROOT_INSTALL}/data/nginx-proxy/certs:/etc/nginx/certs
|
||||
- ${ROOT_INSTALL}/data/nginx-proxy/vhost.d:/etc/nginx/vhost.d:ro
|
||||
- ${ROOT_INSTALL}/data/nginx-proxy/vhost.d:/etc/nginx/vhost.d:ro
|
||||
- ${ROOT_INSTALL}/data/nginx-proxy/htpasswd:/etc/nginx/htpasswd
|
Loading…
Add table
Reference in a new issue