mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Combine the two Nginx reverse proxy examples
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
@@ -68,12 +68,6 @@ Apache2
|
||||
|
||||
Thanks to `@ffried <https://github.com/ffried>`_ for apache2 example.
|
||||
|
||||
nginx
|
||||
^^^^^
|
||||
::
|
||||
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
|
||||
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ redirect;
|
||||
|
||||
Traefik 1
|
||||
^^^^^^^^^
|
||||
|
||||
@@ -123,6 +117,12 @@ NGINX
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
|
||||
or
|
||||
|
||||
::
|
||||
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
|
||||
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ redirect;
|
||||
|
||||
CADDY
|
||||
^^^^^
|
||||
::
|
||||
|
||||
Reference in New Issue
Block a user