1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00

Enable dav autodiscovery

This commit is contained in:
Josué Tille 2019-01-29 09:19:08 +01:00
parent bd3e9e45dc
commit 2dc33ec32e
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

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