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

Fix ngixn config

This commit is contained in:
Salamandar 2024-01-30 23:52:55 +01:00
parent 37c5124024
commit 474cdde334

View file

@ -15,26 +15,26 @@ config_nginx() {
principals_block='
# For IOS 7
location = /principals/ {
rewrite ^ https://\$server_name/SOGo/dav;
rewrite ^ https://$server_name/SOGo/dav;
allow all;
}'
# shellcheck disable=SC2016
activesync_block='
# For ActiveSync
location /Microsoft-Server-ActiveSync/ {
proxy_pass http://127.0.0.1:$port/SOGo/Microsoft-Server-ActiveSync/;
proxy_pass http://127.0.0.1:__PORT__/SOGo/Microsoft-Server-ActiveSync/;
}'
# shellcheck disable=SC2016
caldav_block='
# For Caldav
location /.well-known/caldav {
rewrite ^ https://\$server_name/SOGo/dav/;
rewrite ^ https://$server_name/SOGo/dav/;
}'
# shellcheck disable=SC2016
carddav_block='
# For Carddav
location /.well-known/carddav {
rewrite ^ https://\$server_name/SOGo/dav/;
rewrite ^ https://$server_name/SOGo/dav/;
}'
if ! is_url_handled -d "$domain" -p "/principals"; then