Big progress dump
This commit is contained in:
@@ -18,27 +18,19 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
# Router for HTTP + redirection to HTTPS
|
||||
- "traefik.http.routers.bitwarden-http.rule=Host(`pass.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.bitwarden-http.entrypoints=web"
|
||||
- "traefik.http.routers.bitwarden-http.middlewares=redirect-to-https"
|
||||
# HTTP → HTTPS
|
||||
- "traefik.http.routers.pass-http.rule=Host(`pass.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.pass-http.entrypoints=web"
|
||||
- "traefik.http.routers.pass-http.middlewares=redirect-to-https"
|
||||
|
||||
# Router for HTTPS with TLS
|
||||
- "traefik.http.routers.bitwarden-https.rule=Host(`pass.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.bitwarden-https.entrypoints=websecure"
|
||||
- "traefik.http.routers.bitwarden-https.tls=true"
|
||||
- "traefik.http.routers.bitwarden-https.tls.certresolver=njalla"
|
||||
|
||||
# Wildcard
|
||||
# - "traefik.http.routers.bitwarden-https.tls.domains[0].main=lazyworkhorse.net"
|
||||
# - "traefik.http.routers.bitwarden-https.tls.domains[0].sans=*.lazyworkhorse.net"
|
||||
|
||||
# Middleware for redirect HTTP -> HTTPS
|
||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||
|
||||
# Websocket support (port 80 du container)
|
||||
- "traefik.http.services.bitwarden.loadbalancer.server.port=80"
|
||||
# HTTPS
|
||||
- "traefik.http.routers.pass-https.rule=Host(`pass.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.pass-https.entrypoints=websecure"
|
||||
- "traefik.http.routers.pass-https.tls=true"
|
||||
- "traefik.http.routers.pass-https.tls.certresolver=njalla"
|
||||
|
||||
# Internal service
|
||||
- "traefik.http.services.pass.loadbalancer.server.port=80"
|
||||
networks:
|
||||
traefik-net:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user