feat: add homeassistant to treafik including dns record to reach from outside
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# HTTP (entrypoint web) -> HTTPS redirect voor ns.labzand.com.
|
||||
# De Ingress zelf heeft een tls-sectie, waardoor Traefik die router alleen
|
||||
# op websecure matcht; daarom hier een aparte router op web.
|
||||
# services: api@internal is een dummy - de redirect middleware stuurt
|
||||
# nooit door naar een backend.
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: ha-redirect
|
||||
namespace: external
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- match: Host(`ha.labzand.com`)
|
||||
kind: Rule
|
||||
middlewares:
|
||||
- name: redirect-https
|
||||
services:
|
||||
- name: api@internal
|
||||
kind: TraefikService
|
||||
Reference in New Issue
Block a user