Browse Source

Add syncthing app (#1092)

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
0.4.9
Sam Cymbaluk 3 years ago
committed by GitHub
parent
commit
395957dbb2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      apps/registry.json
  2. 0
      apps/syncthing/data/.gitkeep
  3. 21
      apps/syncthing/docker-compose.yml
  4. 6
      scripts/configure
  5. 3
      templates/.env-sample
  6. 4
      templates/torrc-apps-3-sample

21
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": ""
}
]

0
apps/syncthing/data/.gitkeep

21
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}

6
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>/${APP_ELECTRUMX_PORT}/g" "${template}"
sed -i "s/<app-tallycoin-connect-ip>/${APP_TALLYCOIN_CONNECT_IP}/g" "${template}"
sed -i "s/<app-tallycoin-connect-port>/${APP_TALLYCOIN_CONNECT_PORT}/g" "${template}"
sed -i "s/<app-syncthing-ip>/${APP_SYNCTHING_IP}/g" "${template}"
sed -i "s/<app-syncthing-port>/${APP_SYNCTHING_PORT}/g" "${template}"
sed -i "s/<app-syncthing-sync-port>/${APP_SYNCTHING_SYNC_PORT}/g" "${template}"
done
##########################################################

3
templates/.env-sample

@ -107,3 +107,6 @@ APP_ELECTRUMX_IP=<app-electrumx-ip>
APP_ELECTRUMX_PORT=<app-electrumx-port>
APP_TALLYCOIN_CONNECT_IP=<app-tallycoin-connect-ip>
APP_TALLYCOIN_CONNECT_PORT=<app-tallycoin-connect-port>
APP_SYNCTHING_IP=<app-syncthing-ip>
APP_SYNCTHING_PORT=<app-syncthing-port>
APP_SYNCTHING_SYNC_PORT=<app-syncthing-sync-port>

4
templates/torrc-apps-3-sample

@ -40,3 +40,7 @@ HiddenServicePort 50001 <app-electrumx-ip>:50001
# tallycoin-connectHidden Service
HiddenServiceDir /var/lib/tor/app-tallycoin-connect
HiddenServicePort 80 <app-tallycoin-connect-ip>:<app-tallycoin-connect-port>
# syncthing Hidden Service
HiddenServiceDir /var/lib/tor/app-syncthing
HiddenServicePort 80 <app-syncthing-ip>:<app-syncthing-port>

Loading…
Cancel
Save