Changed syncthing access and auth scheme
This commit is contained in:
49
k8s/apps/syncthing/ingress-route.yaml
Normal file
49
k8s/apps/syncthing/ingress-route.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user