From 474cdde334a7f00289d8b41d079623f09d4dad35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 30 Jan 2024 23:52:55 +0100 Subject: [PATCH] Fix ngixn config --- scripts/_common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b39cfbc..ec74b54 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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