From f5a8396abecfee72779ab63c13e80b6ad821eef5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 20 Jan 2024 21:43:27 +0300 Subject: [PATCH] now syncthing console is on default https port... Signed-off-by: Alex A. Naanou --- syncthing/NOTES.md | 2 +- syncthing/assets/etc/sysctl.d/ports.conf | 1 + syncthing/make.sh | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 syncthing/assets/etc/sysctl.d/ports.conf diff --git a/syncthing/NOTES.md b/syncthing/NOTES.md index a4c01c9..cd9e5c5 100644 --- a/syncthing/NOTES.md +++ b/syncthing/NOTES.md @@ -1,5 +1,5 @@ # Syncthing -https://${CTHOSTNAME}.srv +https://${CTHOSTNAME}.adm diff --git a/syncthing/assets/etc/sysctl.d/ports.conf b/syncthing/assets/etc/sysctl.d/ports.conf new file mode 100644 index 0000000..9b041e2 --- /dev/null +++ b/syncthing/assets/etc/sysctl.d/ports.conf @@ -0,0 +1 @@ +net.ipv4.ip_unprivileged_port_start=443 diff --git a/syncthing/make.sh b/syncthing/make.sh index 4b3a484..99bd5a4 100755 --- a/syncthing/make.sh +++ b/syncthing/make.sh @@ -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..."