1
0
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:
Joshua Tauberer
2014-08-13 00:30:09 +00:00
parent 05cc63b5d5
commit d03bc0cefa
2 changed files with 9 additions and 7 deletions

View File

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