Fix: Changed syncthing access and auth scheme
This commit is contained in:
18
k8s/apps/syncthing/cors-middleware.yaml
Normal file
18
k8s/apps/syncthing/cors-middleware.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: cors-headers
|
||||
namespace: syncthing
|
||||
spec:
|
||||
headers:
|
||||
accessControlAllowMethods:
|
||||
- "GET"
|
||||
- "OPTIONS"
|
||||
- "POST"
|
||||
accessControlAllowHeaders:
|
||||
- "*"
|
||||
accessControlAllowOriginList:
|
||||
- "https://ss.hexor.cy"
|
||||
- "https://idm.hexor.cy"
|
||||
accessControlMaxAge: 100
|
||||
addVaryHeader: true
|
@@ -6,6 +6,7 @@ resources:
|
||||
- app.yaml
|
||||
- nginx-router.yaml
|
||||
- traefik-simple.yaml
|
||||
- cors-middleware.yaml
|
||||
|
||||
helmCharts:
|
||||
- name: syncthing
|
||||
|
@@ -16,6 +16,8 @@ spec:
|
||||
middlewares:
|
||||
- name: authentik-forward-auth
|
||||
namespace: syncthing
|
||||
- name: cors-headers
|
||||
namespace: syncthing
|
||||
tls:
|
||||
secretName: syncthing-tls
|
||||
---
|
||||
|
Reference in New Issue
Block a user