From fa9af34fff81881b6a37b2053f85ede29c190cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 28 May 2016 21:06:58 +0200 Subject: [PATCH] [fix] Serve .well-known paths at the root to be discovered --- README.md | 15 +++++++++++---- conf/nginx.conf | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 911586d..2322f2f 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,19 @@ sabre/dav, that includes an administrative interface for easy management. **Shipped version:** 0.4.4 +## Features + +In addition to Baïkal core features, the following are made available with +this package: + + * Serve `/.well-known` paths for CalDAV and CardDAV on the domain + ## TODO * Update `config.php` and `config.system.php` at upgrade -## Links ## +## Links -**Baïkal**: http://baikal-server.com/ - -**YunoHost**: https://yunohost.org/ + * Report a bug: https://dev.yunohost.org/projects/apps/issues + * Baïkal website: http://baikal-server.com/ + * YunoHost website: https://yunohost.org/ diff --git a/conf/nginx.conf b/conf/nginx.conf index 71a8be1..98b3d93 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,7 @@ -location = {PATH}/.well-known/carddav { +location = /.well-known/carddav { return 301 https://$server_name{PATH}/card.php; } -location = {PATH}/.well-known/caldav { +location = /.well-known/caldav { return 301 https://$server_name{PATH}/cal.php; }