correct redirect by duplicate http and https services

This commit is contained in:
2025-10-01 15:48:13 +05:30
parent 65771f5602
commit 98ad47b963

View File

@@ -3,6 +3,7 @@ http:
basic-auth: basic-auth:
basicAuth: basicAuth:
usersFile: /auth/htpasswd usersFile: /auth/htpasswd
redirect-to-https: redirect-to-https:
redirectScheme: redirectScheme:
scheme: https scheme: https
@@ -30,7 +31,109 @@ http:
accessControlMaxAge: 1728000 accessControlMaxAge: 1728000
routers: routers:
# ----------------------
# HTTP routers for redirect
# ----------------------
# Dashboard # Dashboard
traefik-dashboard-http:
rule: "Host(`traefik.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
plex-http:
rule: "Host(`plex.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
sonarr-http:
rule: "Host(`sonarr.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
radarr-http:
rule: "Host(`radarr.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
jellyseerr-http:
rule: "Host(`jellyseerr.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
ombi-http:
rule: "Host(`ombi.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
qbit-http:
rule: "Host(`qbit.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
gitea-http:
rule: "Host(`gitea.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
drone-http:
rule: "Host(`drone.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
dcr-http:
rule: "Host(`dcr.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
registry-http:
rule: "Host(`registry.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
portainer-http:
rule: "Host(`portainer.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
# ----------------------
# HTTPS routers
# ----------------------
traefik-dashboard: traefik-dashboard:
rule: "Host(`traefik.aetoskia.com`)" rule: "Host(`traefik.aetoskia.com`)"
entryPoints: entryPoints:
@@ -39,10 +142,9 @@ http:
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares: middlewares:
- redirect-to-https
- basic-auth - basic-auth
# Media Services # Media
plex: plex:
rule: "Host(`plex.aetoskia.com`)" rule: "Host(`plex.aetoskia.com`)"
entryPoints: entryPoints:
@@ -50,8 +152,6 @@ http:
service: plex-svc service: plex-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
- redirect-to-https
sonarr: sonarr:
rule: "Host(`sonarr.aetoskia.com`)" rule: "Host(`sonarr.aetoskia.com`)"
@@ -60,8 +160,6 @@ http:
service: sonarr-svc service: sonarr-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
- redirect-to-https
radarr: radarr:
rule: "Host(`radarr.aetoskia.com`)" rule: "Host(`radarr.aetoskia.com`)"
@@ -70,8 +168,6 @@ http:
service: radarr-svc service: radarr-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
- redirect-to-https
jellyseerr: jellyseerr:
rule: "Host(`jellyseerr.aetoskia.com`)" rule: "Host(`jellyseerr.aetoskia.com`)"
@@ -80,8 +176,6 @@ http:
service: jellyseerr-svc service: jellyseerr-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
- redirect-to-https
ombi: ombi:
rule: "Host(`ombi.aetoskia.com`)" rule: "Host(`ombi.aetoskia.com`)"
@@ -90,8 +184,6 @@ http:
service: ombi-svc service: ombi-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
- redirect-to-https
qbit: qbit:
rule: "Host(`qbit.aetoskia.com`)" rule: "Host(`qbit.aetoskia.com`)"
@@ -102,9 +194,8 @@ http:
certResolver: aetoskia certResolver: aetoskia
middlewares: middlewares:
- websocket-headers - websocket-headers
- redirect-to-https
# Codebase Services # Codebase
gitea: gitea:
rule: "Host(`gitea.aetoskia.com`)" rule: "Host(`gitea.aetoskia.com`)"
entryPoints: entryPoints:
@@ -113,7 +204,6 @@ http:
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares: middlewares:
- redirect-to-https
- websocket-headers - websocket-headers
drone: drone:
@@ -124,7 +214,6 @@ http:
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares: middlewares:
- redirect-to-https
- websocket-headers - websocket-headers
dcr: dcr:
@@ -135,7 +224,6 @@ http:
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares: middlewares:
- redirect-to-https
- dcr-cors - dcr-cors
registry: registry:
@@ -145,9 +233,6 @@ http:
service: registry-svc service: registry-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
# - basic-auth
- redirect-to-https
# Monitoring # Monitoring
portainer: portainer:
@@ -157,8 +242,6 @@ http:
service: portainer-svc service: portainer-svc
tls: tls:
certResolver: aetoskia certResolver: aetoskia
middlewares:
- redirect-to-https
services: services:
# Media # Media