mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-04 15:54:48 +01:00
more owncloud configuration tweaks
This commit is contained in:
@@ -46,9 +46,6 @@ server {
|
||||
}
|
||||
|
||||
# ownCloud configuration.
|
||||
rewrite ^/caldav(.*)$ /cloud/remote.php/caldav$1 redirect;
|
||||
rewrite ^/carddav(.*)$ /cloud/remote.php/carddav$1 redirect;
|
||||
rewrite ^/webdav(.*)$ /cloud/remote.php/webdav$1 redirect;
|
||||
rewrite ^/cloud$ /cloud/ redirect;
|
||||
rewrite ^/cloud/$ /cloud/index.php;
|
||||
rewrite ^(/cloud/core/doc/[^\/]+/)$ $1/index.html;
|
||||
@@ -71,6 +68,11 @@ server {
|
||||
client_max_body_size 1G;
|
||||
fastcgi_buffers 64 4K;
|
||||
}
|
||||
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://$HOSTNAME/cloud/remote.php/$1;
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user