Просмотр исходного кода

New API & subdomain ownership enforcing

Alexandros Ioannides 5 лет назад
Родитель
Сommit
858bbe3278
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      install/upgrade/versions/1.4.0.sh

+ 10 - 0
install/upgrade/versions/1.4.0.sh

@@ -105,3 +105,13 @@ if [ -f /etc/apt/sources.list.d/postgresql.list ]; then
     echo "[ * ] Updating PostgreSQL repository..."
     sed -i 's|deb https://apt.postgresql.org/pub/repos/apt/|deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/|g' /etc/apt/sources.list.d/postgresql.list
 fi
+
+# New configuration value for enforcing subdomain ownership
+echo "ENFORCE_SUBDOMAIN_OWNERSHIP='no'" >> $HESTIA/conf/hestia.conf
+
+# New API feature to set allowed IPs
+if [ "$api" = "yes" ]; then
+    echo "API_ALLOWED_IP='allow-all'" >> $HESTIA/conf/hestia.conf
+else
+    $HESTIA/bin/v-change-sys-api disable
+fi