homepage/config/traefik/router.yaml
2022-12-26 04:36:19 +00:00

71 lines
1.5 KiB
YAML

http:
routers:
to-traefik:
rule: Host(`traefik.godopu.net`)
service: traefik
entrypoints: http
middlewares: https-redirect
to-traefik-secure:
rule: Host(`traefik.godopu.net`)
service: traefik
entrypoints: https
tls:
certresolver: https-resolver
to-iot-ws:
rule: Host(`iot.knu.ac.kr`)
service: iot-ws
entrypoints: http
middlewares: https-redirect
to-iot-ws-secure:
rule: Host(`iot.knu.ac.kr`)
service: iot-ws
entrypoints: https
tls:
certresolver: https-resolver
to-protoecol-ws:
rule: Host(`protocol.knu.ac.kr`)
service: iot-ws
entrypoints: http
middlewares: https-redirect
to-protoecol-ws-secure:
rule: Host(`protocol.knu.ac.kr`)
service: iot-ws
entrypoints: https
tls:
certresolver: https-resolver
to-authelia:
rule: Host(`auth.godopu.net`)
service: authelia
entrypoints: http
middlewares: https-redirect
to-authelia-secure:
rule: Host(`auth.godopu.net`)
service: authelia
entrypoints: https
tls:
certresolver: https-resolver
middlewares:
https-redirect:
redirectscheme:
scheme: https
permanent: true
services:
traefik:
loadBalancer:
servers:
- url: http://traefik:8080
iot-ws:
loadBalancer:
servers:
- url: http://iot-web-server:4000
authelia:
loadBalancer:
servers:
- url: http://authelia-app:9091