diff --git a/scripts/_common.sh b/scripts/_common.sh index b52f258..492b68a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -71,6 +71,17 @@ location /Microsoft-Server-ActiveSync/ { } " >> "$nginx_config_path" + + grep "/.well-known/caldav" $nginx_domain_path || echo "location /.well-known/caldav { + rewrite ^ https://\$server_name/SOGo/dav/; +} + " >> "$nginx_config_path" + + grep "/.well-known/carddav" $nginx_domain_path || echo "location /.well-known/carddav { + rewrite ^ https://\$server_name/SOGo/dav/; +} + " >> "$nginx_config_path" + ynh_store_file_checksum "$nginx_config_path" systemctl reload nginx