Fix: Changed syncthing access and auth scheme
This commit is contained in:
36
k8s/apps/syncthing/traefik-simple.yaml
Normal file
36
k8s/apps/syncthing/traefik-simple.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
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-router
|
||||
port: 80
|
||||
middlewares:
|
||||
- name: authentik-forward-auth
|
||||
namespace: syncthing
|
||||
tls:
|
||||
secretName: syncthing-tls
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: authentik-forward-auth
|
||||
namespace: syncthing
|
||||
spec:
|
||||
forwardAuth:
|
||||
address: http://authentik-server.authentik.svc.cluster.local/outpost.goauthentik.io/auth/traefik
|
||||
trustForwardHeader: true
|
||||
authResponseHeaders:
|
||||
- X-authentik-username
|
||||
- X-authentik-groups
|
||||
- X-authentik-email
|
||||
- X-authentik-name
|
||||
- X-authentik-uid
|
||||
Reference in New Issue
Block a user