common redirect instead of every router redirect
This commit is contained in:
@@ -51,171 +51,6 @@ http:
|
|||||||
- Content-Type
|
- Content-Type
|
||||||
accessControlMaxAge: 1728000
|
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
|
# HTTPS routers
|
||||||
# ----------------------
|
# ----------------------
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
|
http:
|
||||||
|
redirections:
|
||||||
|
entryPoint:
|
||||||
|
to: websecure
|
||||||
|
scheme: https
|
||||||
|
permanent: true
|
||||||
websecure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
ssh:
|
ssh:
|
||||||
|
|||||||
Reference in New Issue
Block a user