diff --git a/k8s/apps/syncthing/cors-middleware.yaml b/k8s/apps/syncthing/cors-middleware.yaml deleted file mode 100644 index 9bab4c0..0000000 --- a/k8s/apps/syncthing/cors-middleware.yaml +++ /dev/null @@ -1,18 +0,0 @@ -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 \ No newline at end of file diff --git a/k8s/apps/syncthing/kustomization.yaml b/k8s/apps/syncthing/kustomization.yaml index 63c8032..3b2e879 100644 --- a/k8s/apps/syncthing/kustomization.yaml +++ b/k8s/apps/syncthing/kustomization.yaml @@ -6,7 +6,6 @@ resources: - app.yaml - nginx-router.yaml - traefik-simple.yaml - - cors-middleware.yaml helmCharts: - name: syncthing diff --git a/k8s/apps/syncthing/nginx-router.yaml b/k8s/apps/syncthing/nginx-router.yaml index d62a5ba..d2b1e82 100644 --- a/k8s/apps/syncthing/nginx-router.yaml +++ b/k8s/apps/syncthing/nginx-router.yaml @@ -66,8 +66,6 @@ data: sub_filter '"/vendor' '"/nas/vendor'; sub_filter '"/theme-assets' '"/nas/theme-assets'; sub_filter '"/syncthing' '"/nas/syncthing'; - # Add floating back button via JavaScript before last script tag - sub_filter '' ''; sub_filter_once off; sub_filter_types text/html text/css application/javascript; } @@ -115,8 +113,6 @@ data: sub_filter '"/vendor' '"/master/vendor'; sub_filter '"/theme-assets' '"/master/theme-assets'; sub_filter '"/syncthing' '"/master/syncthing'; - # Add floating back button via JavaScript before last script tag - sub_filter '' ''; sub_filter_once off; sub_filter_types text/html text/css application/javascript; } @@ -164,8 +160,6 @@ data: sub_filter '"/vendor' '"/iris/vendor'; sub_filter '"/theme-assets' '"/iris/theme-assets'; sub_filter '"/syncthing' '"/iris/syncthing'; - # Add floating back button via JavaScript before last script tag - sub_filter '' ''; sub_filter_once off; sub_filter_types text/html text/css application/javascript; } @@ -279,4 +273,4 @@ spec: ports: - protocol: TCP port: 80 - targetPort: 80 \ No newline at end of file + targetPort: 80 diff --git a/k8s/apps/syncthing/traefik-simple.yaml b/k8s/apps/syncthing/traefik-simple.yaml index 13b27f8..4795934 100644 --- a/k8s/apps/syncthing/traefik-simple.yaml +++ b/k8s/apps/syncthing/traefik-simple.yaml @@ -16,8 +16,6 @@ spec: middlewares: - name: authentik-forward-auth namespace: syncthing - - name: cors-headers - namespace: syncthing tls: secretName: syncthing-tls ---