1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2025-11-05 00:52:34 +00:00

Add nginx for healthcheck route

This commit is contained in:
Girish Ramakrishnan
2018-02-26 16:28:45 -08:00
parent ee5dc6e5b8
commit 310b9443b0
6 changed files with 78 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
set -eu
mkdir -p /app/data/config /app/data/folders
mkdir -p /app/data/config /app/data/folders /run/syncthing
# if this if the first run, generate a useful config
if [ ! -f /app/data/config/config.xml ]; then
@@ -21,10 +21,7 @@ fi
sed -e "s,<listenAddress>.*</listenAddress>,<listenAddress>tcp://:${SYNC_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
# -no-browser opens up the browser (for desktop app preumably)
# auditfile "-" means log to stdout
echo "=> Starting syncthing"
STNOUPGRADE=1 exec /usr/local/bin/gosu cloudron:cloudron /app/code/syncthing -gui-address=0.0.0.0:3000 -home=/app/data/config -no-browser -auditfile=-
chown -R cloudron:cloudron /app/data /run/syncthing
echo "Starting supervisor"
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i GitLab