Browse Source

Add simple-torrent app

master-prepare
Luke Childs 3 years ago
parent
commit
b12c581ae1
  1. 22
      apps/registry.json
  2. 0
      apps/simple-torrent/data/config/.gitkeep
  3. 0
      apps/simple-torrent/data/downloads/.gitkeep
  4. 0
      apps/simple-torrent/data/torrents/.gitkeep
  5. 19
      apps/simple-torrent/docker-compose.yml
  6. 4
      scripts/configure
  7. 2
      templates/.env-sample
  8. 4
      templates/torrc-sample

22
apps/registry.json

@ -87,6 +87,28 @@
"defaultPassword": "",
"torOnly": false
},
{
"id": "simple-torrent",
"category": "Networking",
"name": "SimpleTorrent",
"version": "1.2.23",
"tagline": "Download torrents with your Umbrel",
"description": "SimpleTorrent is a a self-hosted remote torrent client that starts torrents remotely, download sets of files on your Umbrel, which are then retrievable or streamable via web browser over HTTP. This project is a re-branded fork of cloud-torrent by jpillora. Features:\n\n- Individual file download control\n- Run external program on tasks completion: DoneCmd\n- Stops task when seeding ratio reached: SeedRatio\n- Download/Upload speed limiter: UploadRate/DownloadRate\n- Detailed transfer stats in web UI.\n- Torrent Watcher\n- Extra trackers from external source\n- Protocol Handler to magnet:\n- Magnet RSS subscribing supported",
"developer": "Preston",
"website": "https://github.com/boypt",
"dependencies": [],
"repo": "https://github.com/boypt/simple-torrent",
"support": "https://github.com/boypt/simple-torrent/issues",
"port": 8086,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultPassword": "",
"torOnly": false
},
{
"id": "mempool",
"category": "Explorers",

0
apps/simple-torrent/data/config/.gitkeep

0
apps/simple-torrent/data/downloads/.gitkeep

0
apps/simple-torrent/data/torrents/.gitkeep

19
apps/simple-torrent/docker-compose.yml

@ -0,0 +1,19 @@
version: "3.7"
services:
server:
image: boypt/cloud-torrent:1.3.4@sha256:a1355e9ac319d523ce1fd6e8d34ab8e4bf0b5476c52bfe244e37fea64f6f4228
user: "1000:1000"
restart: on-failure
ports:
- "${APP_SIMPLETORRENT_PORT}:${APP_SIMPLETORRENT_PORT}"
command: >
--port=${APP_SIMPLETORRENT_PORT}
--config-path /config/simple-torrent.json
volumes:
- ${APP_DATA_DIR}/data/torrents:/torrents
- ${APP_DATA_DIR}/data/downloads:/downloads
- ${APP_DATA_DIR}/data/config:/config
networks:
default:
ipv4_address: $APP_SIMPLETORRENT_IP

4
scripts/configure

@ -171,6 +171,8 @@ APP_GITEA_PORT="8085"
APP_GITEA_SSH_PORT="2222"
APP_GITEA_IP="10.21.21.39"
APP_GITEA_DB_IP="10.21.21.40"
APP_SIMPLETORRENT_PORT="8086"
APP_SIMPLETORRENT_IP="10.21.21.41"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -347,6 +349,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-gitea-ssh-port>/${APP_GITEA_SSH_PORT}/g" "${template}"
sed -i "s/<app-gitea-ip>/${APP_GITEA_IP}/g" "${template}"
sed -i "s/<app-gitea-db-ip>/${APP_GITEA_DB_IP}/g" "${template}"
sed -i "s/<app-simple-torrent-port>/${APP_SIMPLETORRENT_PORT}/g" "${template}"
sed -i "s/<app-simple-torrent-ip>/${APP_SIMPLETORRENT_IP}/g" "${template}"
done
##########################################################

2
templates/.env-sample

@ -74,3 +74,5 @@ APP_GITEA_PORT=<app-gitea-port>
APP_GITEA_SSH_PORT=<app-gitea-ssh-port>
APP_GITEA_IP=<app-gitea-ip>
APP_GITEA_DB_IP=<app-gitea-db-ip>
APP_SIMPLETORRENT_PORT=<app-simple-torrent-port>
APP_SIMPLETORRENT_IP=<app-simple-torrent-ip>

4
templates/torrc-sample

@ -101,4 +101,8 @@ HiddenServiceDir /var/lib/tor/app-gitea
HiddenServicePort 80 <app-gitea-ip>:<app-gitea-port>
HiddenServicePort 22 <app-gitea-ip>:<app-gitea-ssh-port>
# simple-torrent Hidden Service
HiddenServiceDir /var/lib/tor/app-simple-torrent
HiddenServicePort 80 <app-simple-torrent-ip>:<app-simple-torrent-port>
HashedControlPassword <password>

Loading…
Cancel
Save