mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-01 12:45:02 +00:00
Rename to SYNCER_PORT
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
"localstorage": {}
|
"localstorage": {}
|
||||||
},
|
},
|
||||||
"tcpPorts": {
|
"tcpPorts": {
|
||||||
"PORT": {
|
"SYNCER_PORT": {
|
||||||
"title": "Port",
|
"title": "Sync Port",
|
||||||
"description": "Port over which syncthing will exchange data (do not disable)",
|
"description": "Port over which syncthing will exchange data (do not disable)",
|
||||||
"defaultValue": 22000,
|
"defaultValue": 22000,
|
||||||
"containerPort": 22000
|
"containerPort": 22000
|
||||||
|
2
start.sh
2
start.sh
@@ -13,7 +13,7 @@ if [ ! -f /app/data/config/config.xml ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident.
|
# Set the listenAddress and the gui enabled to make sure user doesnt lock themselves out by accident.
|
||||||
sed -e 's,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:22000</listenAddress>,' -i /app/data/config/config.xml
|
sed -e "s,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNCER_PORT}</listenAddress>," -i /app/data/config/config.xml
|
||||||
sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/data/config/config.xml
|
sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/data/config/config.xml
|
||||||
|
|
||||||
chown -R cloudron:cloudron /app/data/config /app/data
|
chown -R cloudron:cloudron /app/data/config /app/data
|
||||||
|
Reference in New Issue
Block a user