Skip to content

Commit 858bbe3

Browse files
author
Alexandros Ioannides
authored
New API & subdomain ownership enforcing
1 parent 1b0945a commit 858bbe3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install/upgrade/versions/1.4.0.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,13 @@ if [ -f /etc/apt/sources.list.d/postgresql.list ]; then
105105
echo "[ * ] Updating PostgreSQL repository..."
106106
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
107107
fi
108+
109+
# New configuration value for enforcing subdomain ownership
110+
echo "ENFORCE_SUBDOMAIN_OWNERSHIP='no'" >> $HESTIA/conf/hestia.conf
111+
112+
# New API feature to set allowed IPs
113+
if [ "$api" = "yes" ]; then
114+
echo "API_ALLOWED_IP='allow-all'" >> $HESTIA/conf/hestia.conf
115+
else
116+
$HESTIA/bin/v-change-sys-api disable
117+
fi

0 commit comments

Comments
 (0)