Fix: Drop nginx magic
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 11s
Check with kubeconform / lint (push) Successful in 12s

This commit is contained in:
AB from home.homenet
2025-10-12 15:16:59 +03:00
parent a6e0165027
commit 36e8c5c36b
4 changed files with 1 additions and 28 deletions

View File

@@ -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

View File

@@ -6,7 +6,6 @@ resources:
- app.yaml - app.yaml
- nginx-router.yaml - nginx-router.yaml
- traefik-simple.yaml - traefik-simple.yaml
- cors-middleware.yaml
helmCharts: helmCharts:
- name: syncthing - name: syncthing

View File

@@ -66,8 +66,6 @@ data:
sub_filter '"/vendor' '"/nas/vendor'; sub_filter '"/vendor' '"/nas/vendor';
sub_filter '"/theme-assets' '"/nas/theme-assets'; sub_filter '"/theme-assets' '"/nas/theme-assets';
sub_filter '"/syncthing' '"/nas/syncthing'; sub_filter '"/syncthing' '"/nas/syncthing';
# Add floating back button via JavaScript before last script tag
sub_filter '<!-- / gui application code -->' '<!-- / gui application code --><script>window.addEventListener("load", function() { var btn = document.createElement("a"); btn.href = "/"; btn.innerHTML = "← Back to Instances"; btn.style.cssText = "position: fixed; top: 70px; left: 10px; z-index: 10000; background: #0078e7; color: white; padding: 8px 16px; border-radius: 4px; text-decoration: none; display: block; box-shadow: 0 2px 4px rgba(0,0,0,0.2);"; document.body.appendChild(btn); });</script>';
sub_filter_once off; sub_filter_once off;
sub_filter_types text/html text/css application/javascript; sub_filter_types text/html text/css application/javascript;
} }
@@ -115,8 +113,6 @@ data:
sub_filter '"/vendor' '"/master/vendor'; sub_filter '"/vendor' '"/master/vendor';
sub_filter '"/theme-assets' '"/master/theme-assets'; sub_filter '"/theme-assets' '"/master/theme-assets';
sub_filter '"/syncthing' '"/master/syncthing'; sub_filter '"/syncthing' '"/master/syncthing';
# Add floating back button via JavaScript before last script tag
sub_filter '<!-- / gui application code -->' '<!-- / gui application code --><script>window.addEventListener("load", function() { var btn = document.createElement("a"); btn.href = "/"; btn.innerHTML = "← Back to Instances"; btn.style.cssText = "position: fixed; top: 70px; left: 10px; z-index: 10000; background: #0078e7; color: white; padding: 8px 16px; border-radius: 4px; text-decoration: none; display: block; box-shadow: 0 2px 4px rgba(0,0,0,0.2);"; document.body.appendChild(btn); });</script>';
sub_filter_once off; sub_filter_once off;
sub_filter_types text/html text/css application/javascript; sub_filter_types text/html text/css application/javascript;
} }
@@ -164,8 +160,6 @@ data:
sub_filter '"/vendor' '"/iris/vendor'; sub_filter '"/vendor' '"/iris/vendor';
sub_filter '"/theme-assets' '"/iris/theme-assets'; sub_filter '"/theme-assets' '"/iris/theme-assets';
sub_filter '"/syncthing' '"/iris/syncthing'; sub_filter '"/syncthing' '"/iris/syncthing';
# Add floating back button via JavaScript before last script tag
sub_filter '<!-- / gui application code -->' '<!-- / gui application code --><script>window.addEventListener("load", function() { var btn = document.createElement("a"); btn.href = "/"; btn.innerHTML = "← Back to Instances"; btn.style.cssText = "position: fixed; top: 70px; left: 10px; z-index: 10000; background: #0078e7; color: white; padding: 8px 16px; border-radius: 4px; text-decoration: none; display: block; box-shadow: 0 2px 4px rgba(0,0,0,0.2);"; document.body.appendChild(btn); });</script>';
sub_filter_once off; sub_filter_once off;
sub_filter_types text/html text/css application/javascript; sub_filter_types text/html text/css application/javascript;
} }

View File

@@ -16,8 +16,6 @@ spec:
middlewares: middlewares:
- name: authentik-forward-auth - name: authentik-forward-auth
namespace: syncthing namespace: syncthing
- name: cors-headers
namespace: syncthing
tls: tls:
secretName: syncthing-tls secretName: syncthing-tls
--- ---