diff --git a/k8s/apps/syncthing/ingress-route.yaml b/k8s/apps/syncthing/ingress-route.yaml new file mode 100644 index 0000000..1b5fe2b --- /dev/null +++ b/k8s/apps/syncthing/ingress-route.yaml @@ -0,0 +1,49 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: syncthing-ingressroute + namespace: syncthing +spec: + entryPoints: + - websecure + routes: + - match: Host(`ss.hexor.cy`) + kind: Rule + services: + - name: syncthing-landing + port: 80 + middlewares: + - name: authentik-forward-auth + namespace: syncthing + - match: Host(`ss.hexor.cy`) && PathPrefix(`/nas`) + kind: Rule + services: + - name: syncthing-nas + port: 8384 + middlewares: + - name: authentik-forward-auth + namespace: syncthing + - name: strip-prefix-nas + namespace: syncthing + - match: Host(`ss.hexor.cy`) && PathPrefix(`/master`) + kind: Rule + services: + - name: syncthing-master + port: 8384 + middlewares: + - name: authentik-forward-auth + namespace: syncthing + - name: strip-prefix-master + namespace: syncthing + - match: Host(`ss.hexor.cy`) && PathPrefix(`/iris`) + kind: Rule + services: + - name: syncthing-khv + port: 8384 + middlewares: + - name: authentik-forward-auth + namespace: syncthing + - name: strip-prefix-iris + namespace: syncthing + tls: + secretName: syncthing-tls \ No newline at end of file diff --git a/k8s/apps/syncthing/kustomization.yaml b/k8s/apps/syncthing/kustomization.yaml index 46688d8..b0aa069 100644 --- a/k8s/apps/syncthing/kustomization.yaml +++ b/k8s/apps/syncthing/kustomization.yaml @@ -4,6 +4,9 @@ kind: Kustomization resources: - app.yaml + - ingress-route.yaml + - middleware.yaml + - landing-page.yaml helmCharts: - name: syncthing diff --git a/k8s/apps/syncthing/landing-page.yaml b/k8s/apps/syncthing/landing-page.yaml new file mode 100644 index 0000000..50fed59 --- /dev/null +++ b/k8s/apps/syncthing/landing-page.yaml @@ -0,0 +1,103 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: syncthing-landing-html + namespace: syncthing +data: + index.html: | + + +
+