diff --git a/apps/registry.json b/apps/registry.json index 84be07d..adf90b6 100644 --- a/apps/registry.json +++ b/apps/registry.json @@ -615,5 +615,26 @@ ], "path": "", "defaultPassword": "" + }, + { + "id": "syncthing", + "category": "Files", + "name": "Syncthing", + "version": "1.18.4", + "tagline": "Peer-to-peer file synchronization between your devices", + "description": "Syncthing is a peer-to-peer continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes. Your data is your data alone and you deserve to choose where it is stored, whether it is shared with some third party, and how it's transmitted over the internet.\n\nInstall the Syncthing app on your Umbrel and pair it with the Syncthing app on your phone or computer for a self hosted peer-to-peer backup solution.", + "developer": "The Syncthing Foundation", + "website": "https://syncthing.net", + "dependencies": [], + "repo": "https://github.com/syncthing", + "support": "https://forum.syncthing.net", + "port": 8384, + "gallery": [ + "1.jpg", + "2.jpg", + "3.jpg" + ], + "path": "", + "defaultPassword": "" } ] diff --git a/apps/syncthing/data/.gitkeep b/apps/syncthing/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/syncthing/docker-compose.yml b/apps/syncthing/docker-compose.yml new file mode 100644 index 0000000..5386fb3 --- /dev/null +++ b/apps/syncthing/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.7" + +services: + server: + image: syncthing/syncthing:1.18.4@sha256:97fc6221819aceab9055d120a01d2981a30d3aef962f1ec5eda2b21cfaa883c8 + restart: on-failure + stop_grace_period: 1m + hostname: umbrel + environment: + - PUID=1000 + - PGID=1000 + volumes: + - ${APP_DATA_DIR}/data:/var/syncthing + ports: + - ${APP_SYNCTHING_PORT}:${APP_SYNCTHING_PORT} + - ${APP_SYNCTHING_SYNC_PORT}:${APP_SYNCTHING_SYNC_PORT}/tcp + - ${APP_SYNCTHING_SYNC_PORT}:${APP_SYNCTHING_SYNC_PORT}/udp + networks: + default: + ipv4_address: ${APP_SYNCTHING_IP} + \ No newline at end of file diff --git a/scripts/configure b/scripts/configure index b13d2d6..6ee5e6e 100755 --- a/scripts/configure +++ b/scripts/configure @@ -213,6 +213,9 @@ APP_ELECTRUMX_IP="10.21.21.59" APP_ELECTRUMX_PORT="55001" APP_TALLYCOIN_CONNECT_IP="10.21.21.60" APP_TALLYCOIN_CONNECT_PORT="8123" +APP_SYNCTHING_IP="10.21.21.61" +APP_SYNCTHING_PORT="8384" +APP_SYNCTHING_SYNC_PORT="22000" # Generate RPC credentials if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then @@ -423,6 +426,9 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_ELECTRUMX_PORT}/g" "${template}" sed -i "s//${APP_TALLYCOIN_CONNECT_IP}/g" "${template}" sed -i "s//${APP_TALLYCOIN_CONNECT_PORT}/g" "${template}" + sed -i "s//${APP_SYNCTHING_IP}/g" "${template}" + sed -i "s//${APP_SYNCTHING_PORT}/g" "${template}" + sed -i "s//${APP_SYNCTHING_SYNC_PORT}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index d2ba41e..a5cb2a0 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -107,3 +107,6 @@ APP_ELECTRUMX_IP= APP_ELECTRUMX_PORT= APP_TALLYCOIN_CONNECT_IP= APP_TALLYCOIN_CONNECT_PORT= +APP_SYNCTHING_IP= +APP_SYNCTHING_PORT= +APP_SYNCTHING_SYNC_PORT= diff --git a/templates/torrc-apps-3-sample b/templates/torrc-apps-3-sample index 3141b19..ea36a32 100644 --- a/templates/torrc-apps-3-sample +++ b/templates/torrc-apps-3-sample @@ -40,3 +40,7 @@ HiddenServicePort 50001 :50001 # tallycoin-connectHidden Service HiddenServiceDir /var/lib/tor/app-tallycoin-connect HiddenServicePort 80 : + +# syncthing Hidden Service +HiddenServiceDir /var/lib/tor/app-syncthing +HiddenServicePort 80 :