1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-24 19:07:23 +01:00
This commit is contained in:
kaibae19
2022-04-03 13:12:19 -07:00
parent d3d7d52354
commit 8d12431580
3 changed files with 61 additions and 2 deletions

View File

@@ -14,12 +14,13 @@
add_header Content-Security-Policy "frame-ancestors 'none';";
}
location ~ ^/((caldav|carddav|webdav).*)$ {
# Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either.
# Properly proxying like this seems to work fine.
proxy_pass https://127.0.0.1/cloud/remote.php/$1;
}
# These need to be updated to support External CalDAV/CardDAV
rewrite ^/.well-known/host-meta /cloud/public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /cloud/public.php?service=host-meta-json last;
rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect;