added complete router
Signed-off-by: karmacoma <karmacoma@karmacoma.dev>
This commit is contained in:
parent
e2c5ab8932
commit
664363ae60
1 changed files with 25 additions and 1 deletions
|
|
@ -38,7 +38,31 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- array
|
- array
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.gluetun.middlewares=authentik-auth@file"
|
- "traefik.enable=true"
|
||||||
|
# Define a custom service pointing to port 8080 (qBittorrent WebUI)
|
||||||
|
- "traefik.http.services.gluetun-svc.loadbalancer.server.port=8080"
|
||||||
|
|
||||||
|
# --- SECURE ROUTER (HTTPS) ---
|
||||||
|
# 1. Match the domain
|
||||||
|
- "traefik.http.routers.gluetun-secure.rule=Host(`qbittorrent.karmacoma.dev`)"
|
||||||
|
# 2. Use HTTPS entrypoint
|
||||||
|
- "traefik.http.routers.gluetun-secure.entrypoints=https"
|
||||||
|
# 3. Enable TLS (SSL) using LetsEncrypt
|
||||||
|
- "traefik.http.routers.gluetun-secure.tls=true"
|
||||||
|
- "traefik.http.routers.gluetun-secure.tls.certresolver=letsencrypt"
|
||||||
|
# 4. Apply the Authentik Middleware (Check the name matches your dynamic config)
|
||||||
|
- "traefik.http.routers.gluetun-secure.middlewares=authentik-auth@file"
|
||||||
|
# 5. Point to the service we defined above
|
||||||
|
- "traefik.http.routers.gluetun-secure.service=gluetun-svc"
|
||||||
|
# 6. PRIORITY: This is the fix. Higher number wins over Coolify defaults.
|
||||||
|
- "traefik.http.routers.gluetun-secure.priority=100"
|
||||||
|
|
||||||
|
# --- OPTIONAL: HTTP REDIRECT (Standard Coolify behavior) ---
|
||||||
|
- "traefik.http.routers.gluetun-http.rule=Host(`qbittorrent.karmacoma.dev`)"
|
||||||
|
- "traefik.http.routers.gluetun-http.entrypoints=http"
|
||||||
|
- "traefik.http.routers.gluetun-http.middlewares=redirect-to-https"
|
||||||
|
- "traefik.http.routers.gluetun-http.priority=100"
|
||||||
|
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||||
networks:
|
networks:
|
||||||
array:
|
array:
|
||||||
external: true
|
external: true
|
||||||
Loading…
Reference in a new issue