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_BAIKAL=baikal
|
||||||
HOST_BLOG=blog
|
HOST_BLOG=blog
|
||||||
HOST_DELUGE=deluge
|
HOST_DELUGE=deluge
|
||||||
|
HOST_DELUGE_DOWNLOAD=delugedownload
|
||||||
HOST_DOKUWIKI=dokuwiki
|
HOST_DOKUWIKI=dokuwiki
|
||||||
HOST_GLANCES=glances
|
HOST_GLANCES=glances
|
||||||
HOST_MAIL=mail
|
HOST_MAIL=mail
|
||||||
|
|
|
@ -17,19 +17,10 @@ services:
|
||||||
- ${DELUGE_TORRENT_PORT}:${DELUGE_TORRENT_PORT}/udp
|
- ${DELUGE_TORRENT_PORT}:${DELUGE_TORRENT_PORT}/udp
|
||||||
volumes:
|
volumes:
|
||||||
- deluge_config:/config:rw
|
- deluge_config:/config:rw
|
||||||
- deluge_downloads:/downloads:rw
|
- deluge_downloads:/downloads:rw
|
||||||
labels:
|
environment:
|
||||||
- traefik.enable=true
|
- VIRTUAL_HOST=${HOST_DELUGE}.${DOMAIN}
|
||||||
- traefik.http.routers.deluge.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_DELUGE}`)
|
- VIRTUAL_PORT=8112
|
||||||
- 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}/
|
|
||||||
|
|
||||||
torrent:
|
torrent:
|
||||||
container_name: torrent
|
container_name: torrent
|
||||||
|
@ -41,19 +32,9 @@ services:
|
||||||
- deluge_downloads:/downloads:ro
|
- deluge_downloads:/downloads:ro
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
# shortcut to bypass traefik limitation
|
environment:
|
||||||
ports:
|
- VIRTUAL_HOST=${HOST_DELUGE_DOWNLOAD}.${DOMAIN}
|
||||||
- ${DOWNLOAD_HTTP_PORT}:80
|
- HTTPS_METHOD=nohttps
|
||||||
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}/
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
deluge_config:
|
deluge_config:
|
||||||
|
|
|
@ -8,11 +8,12 @@ services:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
environment:
|
environment:
|
||||||
- DEFAULT_HOST=${DOMAIN}
|
- DEFAULT_HOST=${HOST_WWW}.${DOMAIN}
|
||||||
- DHPARAM_GENERATION=false
|
- DHPARAM_GENERATION=false
|
||||||
networks:
|
networks:
|
||||||
- srv
|
- srv
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ${ROOT_INSTALL}/data/nginx-proxy/certs:/etc/nginx/certs
|
- ${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