Big progress dump

This commit is contained in:
2026-02-22 18:35:22 -05:00
parent 5def86e278
commit 1e64f8e321
9 changed files with 494 additions and 28 deletions

View File

@@ -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