common redirect instead of every router redirect

This commit is contained in:
2025-11-03 01:39:58 +05:30
parent 86403951c0
commit eb7c54e324
2 changed files with 6 additions and 165 deletions

View File

@@ -51,171 +51,6 @@ http:
- Content-Type
accessControlMaxAge: 1728000
routers:
# ----------------------
# HTTP routers for redirect
# ----------------------
www-http:
rule: "Host(`www.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
blog-http:
rule: "Host(`blog.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
# 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
bazarr-http:
rule: "Host(`bazarr.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
prowlarr-http:
rule: "Host(`prowlarr.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(`git.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
docs-http:
rule: "Host(`docs.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
pypiserver-http:
rule: "Host(`pip.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
netdata-http:
rule: "Host(`netdata.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
mongo-express-http:
rule: "Host(`mongo.aetoskia.com`)"
entryPoints:
- web
middlewares:
- redirect-to-https
service: noop@internal
# ----------------------
# HTTPS routers
# ----------------------

View File

@@ -1,6 +1,12 @@
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
websecure:
address: ":443"
ssh: