From d931083e0ebf5986602fe93336f212bdd88ee60d Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 14 Jul 2020 13:16:26 +0200 Subject: [PATCH] [SOGo] Disable EAS when SKIP_SOGO=y --- data/conf/nginx/templates/sogo_eas.template.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 data/conf/nginx/templates/sogo_eas.template.sh diff --git a/data/conf/nginx/templates/sogo_eas.template.sh b/data/conf/nginx/templates/sogo_eas.template.sh new file mode 100644 index 00000000..b241ef0e --- /dev/null +++ b/data/conf/nginx/templates/sogo_eas.template.sh @@ -0,0 +1,5 @@ +if printf "%s\n" "${SKIP_SOGO}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then + echo "return 410;" +else + echo "proxy_pass http://${IPV4_NETWORK}.248:20000/SOGo/Microsoft-Server-ActiveSync;" +fi