diff --git a/ALL_README.md b/ALL_README.md new file mode 100644 index 0000000..152f2e7 --- /dev/null +++ b/ALL_README.md @@ -0,0 +1,8 @@ +# All available README files by language + +- [Read the README in English](README.md) +- [Lea el README en español](README_es.md) +- [Irakurri README euskaraz](README_eu.md) +- [Lire le README en français](README_fr.md) +- [Le o README en galego](README_gl.md) +- [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index 363fe3a..2eb2f86 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ -# Simple Torrent for YunoHost +# Cloud Torrent for YunoHost -[![Integration level](https://dash.yunohost.org/integration/simple-torrent.svg)](https://dash.yunohost.org/appci/app/simple-torrent) ![Working status](https://ci-apps.yunohost.org/ci/badges/simple-torrent.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/simple-torrent.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/cloud-torrent.svg)](https://dash.yunohost.org/appci/app/cloud-torrent) ![Working status](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.maintain.svg) -[![Install Simple Torrent with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=simple-torrent) +[![Install Cloud Torrent with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cloud-torrent) -*[Lire ce readme en français.](./README_fr.md)* +*[Read this README in other languages.](./ALL_README.md)* -> *This package allows you to install Simple Torrent quickly and simply on a YunoHost server. -If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* +> *This package allows you to install Cloud Torrent quickly and simply on a YunoHost server.* +> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* ## Overview -SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. ### Features @@ -31,33 +31,29 @@ SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang). - Magnet RSS subscribing supported -**Shipped version:** 1.3.9~ynh8 +**Shipped version:** 0.9.1~ynh1 ## Screenshots -![Screenshot of Simple Torrent](./doc/screenshots/screenshot.png) - -## :red_circle: Antifeatures - -- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc. +![Screenshot of Cloud Torrent](./doc/screenshots/screenshot.png) ## Documentation and resources -* Official admin documentation: -* Upstream app code repository: -* YunoHost Store: -* Report a bug: +- Official admin documentation: +- Upstream app code repository: +- YunoHost Store: +- Report a bug: ## Developer info -Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing). +Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing). -To try the testing branch, please proceed like that. +To try the `testing` branch, please proceed like that: -``` bash -sudo yunohost app install https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug or -sudo yunohost app upgrade simple-torrent -u https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug +sudo yunohost app upgrade cloud-torrent -u https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug ``` **More info regarding app packaging:** diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..7e71e60 --- /dev/null +++ b/README_es.md @@ -0,0 +1,59 @@ + + +# Cloud Torrent para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/cloud-torrent.svg)](https://dash.yunohost.org/appci/app/cloud-torrent) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.maintain.svg) + +[![Instalar Cloud Torrent con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cloud-torrent) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarCloud Torrent rapidamente y simplement en un servidor YunoHost.* +> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.* + +## Descripción general + +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. + +### Features + +- Individual file download control (1.1.3+) +- Run external program on tasks completion +- Stops task when seeding ratio reached +- Download/Upload speed limiter +- Detailed transfer stats in web UI. +- Torrent Watcher +- Extra trackers from external source +- Protocol Handler to magnet +- Magnet RSS subscribing supported + + +**Versión actual:** 0.9.1~ynh1 + +## Capturas + +![Captura de Cloud Torrent](./doc/screenshots/screenshot.png) + +## Documentaciones y recursos + +- Documentación administrador oficial: +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +o +sudo yunohost app upgrade cloud-torrent -u https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..2c57f62 --- /dev/null +++ b/README_eu.md @@ -0,0 +1,59 @@ + + +# Cloud Torrent YunoHost-erako + +[![Integrazio maila](https://dash.yunohost.org/integration/cloud-torrent.svg)](https://dash.yunohost.org/appci/app/cloud-torrent) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.maintain.svg) + +[![Instalatu Cloud Torrent YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cloud-torrent) + +*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)* + +> *Pakete honek Cloud Torrent YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.* +> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.* + +## Aurreikuspena + +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. + +### Features + +- Individual file download control (1.1.3+) +- Run external program on tasks completion +- Stops task when seeding ratio reached +- Download/Upload speed limiter +- Detailed transfer stats in web UI. +- Torrent Watcher +- Extra trackers from external source +- Protocol Handler to magnet +- Magnet RSS subscribing supported + + +**Paketatutako bertsioa:** 0.9.1~ynh1 + +## Pantaila-argazkiak + +![Cloud Torrent(r)en pantaila-argazkia](./doc/screenshots/screenshot.png) + +## Dokumentazioa eta baliabideak + +- Administratzaileen dokumentazio ofiziala: +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## Garatzaileentzako informazioa + +Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing). + +`testing` abarra probatzeko, ondorengoa egin: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +edo +sudo yunohost app upgrade cloud-torrent -u https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +``` + +**Informazio gehiago aplikazioaren paketatzeari buruz:** diff --git a/README_fr.md b/README_fr.md index 57e7574..a91ac50 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,22 +1,22 @@ -# Simple Torrent pour YunoHost +# Cloud Torrent pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/simple-torrent.svg)](https://dash.yunohost.org/appci/app/simple-torrent) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/simple-torrent.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/simple-torrent.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/cloud-torrent.svg)](https://dash.yunohost.org/appci/app/cloud-torrent) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.maintain.svg) -[![Installer Simple Torrent avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=simple-torrent) +[![Installer Cloud Torrent avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cloud-torrent) -*[Read this readme in english.](./README.md)* +*[Lire le README dans d'autres langues.](./ALL_README.md)* -> *Ce package vous permet d’installer Simple Torrent rapidement et simplement sur un serveur YunoHost. -Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* +> *Ce package vous permet d’installer Cloud Torrent rapidement et simplement sur un serveur YunoHost.* +> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.* ## Vue d’ensemble -SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. ### Features @@ -31,33 +31,29 @@ SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang). - Magnet RSS subscribing supported -**Version incluse :** 1.3.9~ynh8 +**Version incluse :** 0.9.1~ynh1 ## Captures d’écran -![Capture d’écran de Simple Torrent](./doc/screenshots/screenshot.png) - -## :red_circle: Fonctions indésirables - -- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc. +![Capture d’écran de Cloud Torrent](./doc/screenshots/screenshot.png) ## Documentations et ressources -* Documentation officielle de l’admin : -* Dépôt de code officiel de l’app : -* YunoHost Store: -* Signaler un bug : +- Documentation officielle de l’admin : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : ## Informations pour les développeurs -Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing). +Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing). -Pour essayer la branche testing, procédez comme suit. +Pour essayer la branche `testing`, procédez comme suit : -``` bash -sudo yunohost app install https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug ou -sudo yunohost app upgrade simple-torrent -u https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug +sudo yunohost app upgrade cloud-torrent -u https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** diff --git a/README_gl.md b/README_gl.md new file mode 100644 index 0000000..74f123e --- /dev/null +++ b/README_gl.md @@ -0,0 +1,59 @@ + + +# Cloud Torrent para YunoHost + +[![Nivel de integración](https://dash.yunohost.org/integration/cloud-torrent.svg)](https://dash.yunohost.org/appci/app/cloud-torrent) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.maintain.svg) + +[![Instalar Cloud Torrent con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cloud-torrent) + +*[Le este README en outros idiomas.](./ALL_README.md)* + +> *Este paquete permíteche instalar Cloud Torrent de xeito rápido e doado nun servidor YunoHost.* +> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.* + +## Vista xeral + +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. + +### Features + +- Individual file download control (1.1.3+) +- Run external program on tasks completion +- Stops task when seeding ratio reached +- Download/Upload speed limiter +- Detailed transfer stats in web UI. +- Torrent Watcher +- Extra trackers from external source +- Protocol Handler to magnet +- Magnet RSS subscribing supported + + +**Versión proporcionada:** 0.9.1~ynh1 + +## Capturas de pantalla + +![Captura de pantalla de Cloud Torrent](./doc/screenshots/screenshot.png) + +## Documentación e recursos + +- Documentación oficial para admin: +- Repositorio de orixe do código: +- Tenda YunoHost: +- Informar dun problema: + +## Info de desenvolvemento + +Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing). + +Para probar a rama `testing`, procede deste xeito: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +ou +sudo yunohost app upgrade cloud-torrent -u https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +``` + +**Máis info sobre o empaquetado da app:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md new file mode 100644 index 0000000..02ebb47 --- /dev/null +++ b/README_zh_Hans.md @@ -0,0 +1,59 @@ + + +# YunoHost 上的 Cloud Torrent + +[![集成程度](https://dash.yunohost.org/integration/cloud-torrent.svg)](https://dash.yunohost.org/appci/app/cloud-torrent) ![工作状态](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/cloud-torrent.maintain.svg) + +[![使用 YunoHost 安装 Cloud Torrent](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cloud-torrent) + +*[阅读此 README 的其它语言版本。](./ALL_README.md)* + +> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Cloud Torrent。* +> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。* + +## 概况 + +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. + +### Features + +- Individual file download control (1.1.3+) +- Run external program on tasks completion +- Stops task when seeding ratio reached +- Download/Upload speed limiter +- Detailed transfer stats in web UI. +- Torrent Watcher +- Extra trackers from external source +- Protocol Handler to magnet +- Magnet RSS subscribing supported + + +**分发版本:** 0.9.1~ynh1 + +## 截图 + +![Cloud Torrent 的截图](./doc/screenshots/screenshot.png) + +## 文档与资源 + +- 官方管理文档: +- 上游应用代码库: +- YunoHost 商店: +- 报告 bug: + +## 开发者信息 + +请向 [`testing` 分支](https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing) 发送拉取请求。 + +如要尝试 `testing` 分支,请这样操作: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +或 +sudo yunohost app upgrade cloud-torrent -u https://github.com/YunoHost-Apps/cloud-torrent_ynh/tree/testing --debug +``` + +**有关应用打包的更多信息:** diff --git a/conf/config.default.yml b/conf/config.default.yml deleted file mode 100644 index a529ea6..0000000 --- a/conf/config.default.yml +++ /dev/null @@ -1,81 +0,0 @@ -AutoStart: true -# AutoStart Whether start torrent task on added Magnet/Torrent. - -AllowRuntimeConfigure: true -# AllowRuntimeConfigure is the switch whether to offer the WEB UI configuration to users. - -EngineDebug: false -# EngineDebug Print debug log from anacrolix/torrent engine (lots of them) - -MuteEngineLog: true -# MuteEngineLog anacrolix/torrent engine prints chunks exchanging logs, normal user can just mute them. - -ObfsPreferred: true -# ObfsPreferred Whether torrent header obfuscation is preferred. - -ObfsRequirePreferred: false -# ObfsRequirePreferred Whether the value of ObfsPreferred is a strict requirement. This hides torrent traffic from being censored. - -DisableTrackers: false -# DisableTrackers Don't announce to trackers. This only leaves DHT to discover peers. - -DisableIPv6: false -# DisableIPv6 Don't connect to IPv6 peers. - -DisableUTP: false -# Disable UTP in the torrent protocol. -# In recent versions, the UTP process cause quite high CPU usage. Set to true can ease the situation. - -NoDefaultPortForwarding: true -# Don't broadcast the UPNP request for gateway port forwarding, which is unnecessary in machines that has public IP (of which this program is mean for?) - -DownloadDirectory: /home/yunohost.app/__APP__/downloads -# DisableEncryption A switch disables [BitTorrent protocol encryption](https://en.wikipedia.org/wiki/BitTorrent_protocol_encryption) - -WatchDirectory: /home/yunohost.app/__APP__/torrents -# DownloadDirectory The directory where downloaded file saves. - -EnableUpload: true -# EnableUpload Whether send chunks to peers - -EnableSeeding: true -# EnableSeeding Whether upload even after there's nothing further for us. By default uploading is not altruistic, we'll only upload to encourage the peer to reciprocate. - -IncomingPort: __PORT_PEER__ -# IncomingPort The port SimpleTorrent listens to. - -DoneCmd: "" -# DoneCmd is An external program to call on task finished. See [DoneCmd Usage](https://github.com/boypt/simple-torrent/wiki/DoneCmdUsage). - -SeedRatio: 1.5 -# SeedRatio The ratio of task Upload/Download data when reached, the task will be stop. - -SeedTime: "0s" -# SeedTime is the time to seed after a task is done downloading, during which if `SeedRatio` is reached, the tasks will stop and deleted; after the duration, the tasks will also stop and removed. But if the waiting queue is empty, will not remove. - -UploadRate: High -DownloadRate: Unlimited -# UploadRate/DownloadRate The global speed limiter, -# a fixed level amoung Low(~50k/s), Medium(~500k/s) and High(~1500k/s) is accepted , Unlimited / 0 -# or empty result in unlimited rate, or a customed value eg: 850k/720kb/2.85MB. - -TrackerListURL: https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt -# TrackerListURL A https URL to a trackers list, this option is design to retrive public trackers from https://github.com/ngosang/trackerslist. - -AlwaysAddTrackers: true -# Always add tracers from TrackerListURL wheather the torrent/magnet link has it's own trackers already - -MaxConcurrentTask: 0 -# MaxConcurrentTask the the maximum tasks concurrently running. Too many task consumes CPU a lot, use this option to limit and queue up download task. - -ProxyURL: "" -# ProxyURL Socks5 Proxy to torrent engine. Authentication should be included in the url if needed. -# Eg. socks5://demo:demo@192.168.99.100:1080 - -# ScraperURL: "https://raw.githubusercontent.com/boypt/simple-torrent/master/scraper-config.json" -# The magnet search engine configuration file. Don't set this option (leave it commented) if not intended to. - -RSSUrl: |- - http://domian./rss.xml - http://some-other-site/rss.xml -# The RSS superscription list. diff --git a/conf/config.json b/conf/config.json new file mode 100644 index 0000000..28657f5 --- /dev/null +++ b/conf/config.json @@ -0,0 +1,19 @@ +{ + "NAME": "Torrent Cloud", + "HOST": "127.0.0.1", + "PORT": "__PORT__", + "AUTH_USER":"__ADMIN__", + "AUTH_PASSWORD":"__PASSWORD__", + "SEARCH_PROVIDERS_URL":"", + "AWS_BUCKET": null, + "AWS_REGION": null, + "AWS_ACCESS_KEY": null, + "AWS_SECRET_KEY": null, + "MEGA_EMAIL": null, + "MEGA_PASS": null, + "SSH_HOST": null, + "SSH_USERNAME": null, + "SSH_PASSWORD": null, + "SSH_PORT": null, + "SSH_ROOT": null +} diff --git a/conf/systemd.service b/conf/systemd.service index ea2bfe9..1d4c8b4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Simple Torrent web server +Description=cloud-torrent After=network.target [Service] @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ Environment=PORT=__PORT__ WorkingDirectory=__INSTALL_DIR__ -ExecStart=__INSTALL_DIR__/__APP__ -c __INSTALL_DIR__/config.yml --host 127.0.0.1 +ExecStart=__INSTALL_DIR__/__APP__ --config-path __INSTALL_DIR__/config.json --port __PORT__ --host 127.0.0.1 Restart=always RestartSec=3 diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 79173d1..c7bc217 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -2,8 +2,4 @@ Most of the items can be edited in Web-UI on the fly in the config board. -You can also configure Simple Torrent by editing this file `/var/www/simple-torrent/config.yml` using the [documentation](https://github.com/boypt/simple-torrent/wiki/Config-File). - -## Limitations - -- This app cannot be installed on a 32-bit ARM machine. +You can also configure Simple Torrent by editing this file `__INSTALL_DIR__/config.yml` using the [documentation](https://github.com/boypt/simple-torrent/wiki/Config-File). diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index eca4d56..33b5a2c 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -2,8 +2,4 @@ La plupart des éléments peuvent être modifiés à la volée dans Web-UI dans la page de configuration. -Vous pouvez configurer Simple Torrent en modifiant le fichier `/var/www/simple-torrent/config.yml` en vous aidant de la [documentation](https://github.com/boypt/simple-torrent/wiki/Config-File). - -## Limitations - -- Cette application ne peut pas être installée sur une machine ARM 32 bits. +Vous pouvez configurer Simple Torrent en modifiant le fichier `__DATA_DIR__/config.yml` en vous aidant de la [documentation](https://github.com/boypt/simple-torrent/wiki/Config-File). diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 399d154..22fb010 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1,4 +1,4 @@ -SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. +Cloud-Torrent is a a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. ### Features diff --git a/doc/screenshots/screenshot.png b/doc/screenshots/screenshot.png index 80407d3..80a304e 100644 Binary files a/doc/screenshots/screenshot.png and b/doc/screenshots/screenshot.png differ diff --git a/manifest.toml b/manifest.toml index 225e3ec..a0871ed 100644 --- a/manifest.toml +++ b/manifest.toml @@ -1,22 +1,22 @@ packaging_format = 2 -id = "simple-torrent" -name = "Simple Torrent" +id = "cloud-torrent" +name = "Cloud Torrent" description.en = "Self-hosted remote torrent client" description.fr = "Client torrent distant auto-hébergé" -version = "1.3.9~ynh8" +version = "0.9.1~ynh1" maintainers = ["eric_G"] [upstream] license = "AGPL-3.0-only" -admindoc = "https://github.com/boypt/simple-torrent/wiki" -code = "https://github.com/boypt/simple-torrent" +admindoc = "https://github.com/jpillora/cloud-torrent/wiki/" +code = "https://github.com/jpillora/cloud-torrent" [integration] -yunohost = ">= 11.1.15" -architectures = ["amd64","i386", "arm64"] +yunohost = ">= 11.2" +architectures = ["amd64","armhf", "arm64"] multi_instance = true ldap = false sso = false @@ -30,7 +30,7 @@ ram.runtime = "50M" [install.path] type = "path" - default = "/simple-torrent" + default = "/cloud-torrent" [install.init_main_permission] help.en = "If enabled, Simple Torrent will be accessible by people who do not have an account. This can be changed later via the webadmin." @@ -38,16 +38,22 @@ ram.runtime = "50M" type = "group" default = "visitors" + [install.admin] + type = "user" + + [install.password] + type = "password" + [resources] [resources.sources] [resources.sources.main] - amd64.url = "https://github.com/boypt/simple-torrent/releases/download/1.3.9/cloud-torrent_linux_amd64_static.gz" - amd64.sha256 = "d2f535e4cd0449b357a563cfce79c1f6afcac9b7b3af94e758defc44faa52ebf" - arm64.url = "https://github.com/boypt/simple-torrent/releases/download/1.3.9/cloud-torrent_linux_arm64_static.gz" - arm64.sha256 = "6f48f8b59bc8d834c6ede1d27ecc1a598b8a0be1dab00622caa6fd047e51eed6" - i386.url = "https://github.com/boypt/simple-torrent/releases/download/1.3.9/cloud-torrent_linux_386_static.gz" - i386.sha256 = "583898eb907c21dbbcb6f33934eae3dc1d6ec2620fdc7689c70a3479049af52b" + amd64.url = "https://github.com/jpillora/cloud-torrent/releases/download/v0.9.1/cloud-torrent_0.9.1_linux_amd64.gz" + amd64.sha256 = "21b7ce6eb9be944f7497811aea368a098c1976d61c5ed854a0003e455be13ca1" + arm64.url = "https://github.com/jpillora/cloud-torrent/releases/download/v0.9.1/cloud-torrent_0.9.1_linux_arm64.gz" + arm64.sha256 = "a4877e546d1d8844a745c6fbb0490aa43f06815833e23af4d9f37e1ecc198637" + i386.url = "https://github.com/jpillora/cloud-torrent/releases/download/v0.9.1/cloud-torrent_0.9.1_linux_armv7.gz" + i386.sha256 = "1038f55c5c6a4b0414e291c647f1b7f4c859f8c0de61a323abd7e087b9095bdc" extract = false in_subdir = false diff --git a/scripts/backup b/scripts/backup index 2d322c2..fd14fd3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,10 +32,6 @@ ynh_backup --src_path="$data_dir" --is_big ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/install b/scripts/install index e171818..796e1f6 100644 --- a/scripts/install +++ b/scripts/install @@ -43,10 +43,10 @@ yunohost service add $app --description="Self-hosted remote torrent client" --ne #================================================= ynh_script_progression --message="Modifying a config file..." --weight=1 -ynh_add_config --template="../conf/config.default.yml" --destination="$install_dir/config.yml" +ynh_add_config --template="config.json" --destination="$install_dir/config.json" -chmod 400 "$install_dir/config.yml" -chown $app:$app "$install_dir/config.yml" +chmod 400 "$install_dir/config.json" +chown $app:$app "$install_dir/config.json" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/remove b/scripts/remove index 2848d21..94e73f3 100644 --- a/scripts/remove +++ b/scripts/remove @@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SYSTEMD SERVICE #================================================= - ynh_script_progression --message="Removing system configurations related to $app..." --weight=5 # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) diff --git a/scripts/upgrade b/scripts/upgrade index 5b57423..c6a841f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,12 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # STANDARD UPGRADE STEPS #================================================= @@ -27,19 +21,15 @@ ynh_systemd_action --service_name=$app --action=stop --log_path=systemd #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=5 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=5 +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir=$install_dir --keep="config.json" - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir=$install_dir --keep="config.yml" - - pushd "$install_dir" - gzip --decompress main --to-stdout > main_dezipped - mv main_dezipped $app - popd -fi +pushd "$install_dir" + gzip --decompress main --to-stdout > main_dezipped + mv main_dezipped $app +popd chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -62,7 +52,7 @@ yunohost service add $app --description="Self-hosted remote torrent client" --ne #================================================= # ynh_script_progression --message="Modifying a config file..." --weight=1 -# ynh_add_config --template="../conf/config.default.yml" --destination="$install_dir/config.yml" +# ynh_add_config --template="config.json" --destination="$install_dir/config.json" #================================================= # START SYSTEMD SERVICE