Rename to SYNCER_PORT
This commit is contained in:
parent
94520d61bf
commit
09b27ff425
|
@ -12,8 +12,8 @@
|
|||
"localstorage": {}
|
||||
},
|
||||
"tcpPorts": {
|
||||
"PORT": {
|
||||
"title": "Port",
|
||||
"SYNCER_PORT": {
|
||||
"title": "Sync Port",
|
||||
"description": "Port over which syncthing will exchange data (do not disable)",
|
||||
"defaultValue": 22000,
|
||||
"containerPort": 22000
|
||||
|
|
2
start.sh
2
start.sh
|
@ -13,7 +13,7 @@ if [ ! -f /app/data/config/config.xml ]; then
|
|||
fi
|
||||
|
||||
# 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
|
||||
|
||||
chown -R cloudron:cloudron /app/data/config /app/data
|
||||
|
|
Loading…
Reference in New Issue