Changed syncthing access and auth scheme
This commit is contained in:
46
k8s/apps/syncthing/middleware.yaml
Normal file
46
k8s/apps/syncthing/middleware.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
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
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: strip-prefix-nas
|
||||
namespace: syncthing
|
||||
spec:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- /nas
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: strip-prefix-master
|
||||
namespace: syncthing
|
||||
spec:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- /master
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: strip-prefix-iris
|
||||
namespace: syncthing
|
||||
spec:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- /iris
|
||||
Reference in New Issue
Block a user