Skip to content

Commit

Permalink
Try solution from nextcloud/helm#410 (comment) to get caldav working …
Browse files Browse the repository at this point in the history
…in nextcloud with CORS enabled set to true
  • Loading branch information
jessebot committed Jun 3, 2024
1 parent 0023616 commit 81c0903
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions nextcloud/app_of_apps/nextcloud_argocd_appset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ spec:
className: nginx
annotations:
cert-manager.io/cluster-issuer: '{{ .global_cluster_issuer }}'
nginx.ingress.kubernetes.io/connection-proxy-header: keep-alive
nginx.ingress.kubernetes.io/proxy-body-size: 10G
nginx.ingress.kubernetes.io/enable-cors: "false"
# nginx.ingress.kubernetes.io/enable-cors: "true"
# nginx.ingress.kubernetes.io/cors-allow-methods: "GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE, PROPFIND, MKCOL, REPORT"
nginx.ingress.kubernetes.io/proxy-max-temp-file-size: 10485760m
nginx.ingress.kubernetes.io/proxy-read-timeout: "86400"
nginx.ingress.kubernetes.io/proxy-send-timeout: "86400"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "120s"
nginx.ingress.kubernetes.io/enable-cors: "true"
# this was originally suggested in nextcloud/helm
# nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
# this was a followup solution for dav stuff
# nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,X-Forwarded-For"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE, PROPFIND, MKCOL, REPORT"
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,X-Forwarded-For"
nginx.ingress.kubernetes.io/server-snippet: |-
server_tokens off;
proxy_hide_header X-Powered-By;
Expand All @@ -70,6 +72,11 @@ spec:
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;
}
Expand Down Expand Up @@ -253,6 +260,7 @@ spec:
extra.config.php: |-
<?php
$CONFIG = array (
'allow_local_remote_servers' => true,
'default_phone_region' => '{{ .nextcloud_default_phone_region }}',
);
Expand Down Expand Up @@ -432,5 +440,9 @@ spec:
enabled: true
namespace: "nextcloud"

phpClientHttpsFix:
enabled: true
protocol: https

rbac:
enabled: true

0 comments on commit 81c0903

Please sign in to comment.