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:
parent
bd3e9e45dc
commit
2dc33ec32e
1 changed files with 11 additions and 0 deletions
|
@ -71,6 +71,17 @@ location /Microsoft-Server-ActiveSync/ {
|
||||||
}
|
}
|
||||||
" >> "$nginx_config_path"
|
" >> "$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"
|
ynh_store_file_checksum "$nginx_config_path"
|
||||||
|
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
Loading…
Add table
Reference in a new issue