浏览代码

[SOGo] Disable EAS when SKIP_SOGO=y

andryyy 5 年之前
父节点
当前提交
d931083e0e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      data/conf/nginx/templates/sogo_eas.template.sh

+ 5 - 0
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