Add NGINX reverse proxy code block

Signed-off-by: Mat M <matm@gmx.fr>
This commit is contained in:
Mat M
2020-04-12 03:40:13 +02:00
committed by Mat M
parent 399c7ac4f5
commit 529ee49511

View File

@@ -90,6 +90,18 @@ HAProxy
acl url_discovery path /.well-known/caldav /.well-known/carddav
http-request redirect location /remote.php/dav/ code 301 if url_discovery
NGINX
^^^^^^^
::
location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
Example
-------