From 27eb541988855f8604e372f71ef391628d8e2f8c Mon Sep 17 00:00:00 2001 From: Thomas Blarre Date: Sat, 9 Nov 2024 22:22:44 +0000 Subject: [PATCH] Removed nginx snippets --- .../templates/nextcloud-main-chart.yaml | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml b/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml index 66cb9da..048f476 100644 --- a/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml +++ b/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml @@ -23,30 +23,30 @@ spec: className: nginx annotations: cert-manager.io/cluster-issuer: letsencrypt - nginx.ingress.kubernetes.io/server-snippet: |- - server_tokens off; - proxy_hide_header X-Powered-By; - rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last; - rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last; - rewrite ^/.well-known/host-meta /public.php?service=host-meta last; - rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json; - location = /.well-known/carddav { - return 301 $scheme://$host/remote.php/dav; - } - location = /.well-known/caldav { - return 301 $scheme://$host/remote.php/dav; - } - location = /robots.txt { - allow all; - log_not_found off; - access_log off; - } - location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { - deny all; - } - location ~ ^/(?:autotest|occ|issue|indie|db_|console) { - deny all; - } + # nginx.ingress.kubernetes.io/server-snippet: |- + # server_tokens off; + # proxy_hide_header X-Powered-By; + # rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last; + # rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last; + # rewrite ^/.well-known/host-meta /public.php?service=host-meta last; + # rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json; + # location = /.well-known/carddav { + # return 301 $scheme://$host/remote.php/dav; + # } + # location = /.well-known/caldav { + # return 301 $scheme://$host/remote.php/dav; + # } + # location = /robots.txt { + # allow all; + # log_not_found off; + # access_log off; + # } + # location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { + # deny all; + # } + # location ~ ^/(?:autotest|occ|issue|indie|db_|console) { + # deny all; + # } nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For" tls: