now syncthing console is on default https port...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-20 21:43:27 +03:00
parent 5d6e412d29
commit f5a8396abe
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Syncthing
https://${CTHOSTNAME}.srv
https://${CTHOSTNAME}.adm

View File

@ -0,0 +1 @@
net.ipv4.ip_unprivileged_port_start=443

View File

@ -66,6 +66,9 @@ buildAssets
echo "# Creating CT..."
pctCreateAlpine $ID "${OPTS_STAGE_1}" "$PASS"
echo "# Copying assets..."
pctPushAssets $ID
echo "# Installing dependencies..."
@ lxc-attach $ID apk add bash syncthing logrotate
@ -77,7 +80,8 @@ echo "# Setup: dashboard..."
sleep ${TIMEOUT:=5}
@ lxc-attach $ID -- \
sed \
-e 's/127\.0\.0\.1:8384/0.0.0.0:8384/g' \
-e 's/tls="false"/tls="true"/g' \
-e 's/127\.0\.0\.1:8384/0.0.0.0:443/g' \
-i /var/lib/syncthing/.config/syncthing/config.xml
echo "# Setup: firewall..."