Compare commits

...
302 Commits
Author SHA1 Message Date
junvandGitHub 197b0a433f bump versions (#232) 2023-04-13 09:14:53 +10:00
junvandGitHub 437436e9c0 Update readme about how to download file through curl and apple shortcuts to address #231 2023-04-13 08:50:58 +10:00
junv-repo-bot ec008b29bd Update version 2023-04-12 05:34:48 +00:00
junvandGitHub 014bb638f3 fix syntax error in aria2c.sh (#230)
* fix syntax error in aria2c.sh

* fix syntax error
2023-04-12 15:28:24 +10:00
junv-repo-bot fab62224f7 Update version 2023-04-12 05:03:57 +00:00
junvandGitHub 3cf974c98c Support just enable rpc-secret for aria2c (#229) 2023-04-12 14:59:48 +10:00
junv-repo-bot 0610f47717 Update version 2022-12-30 07:45:31 +00:00
junvandGitHub 5d4656db63 Expose /rpc to support Sonarr and Radarr (#226) 2022-12-30 18:42:26 +11:00
junv-repo-bot 311696caa1 Update version 2022-12-26 07:47:17 +00:00
junvandGitHub e3cfdf6f68 Fix image due to alpine and rclone changes (#225) 2022-12-26 18:44:35 +11:00
junvandGitHub 58886cfc13 Fix badge url 2022-12-26 18:16:32 +11:00
junv-repo-bot dc9238fc7d Update version 2022-12-26 07:14:59 +00:00
junvandGitHub 8488801ec6 Update all caddy, filebrowser, rlcone and ariang (#224) 2022-12-26 18:11:06 +11:00
junvandGitHub ce31e13a61 Update readme 2022-06-25 17:44:49 +10:00
junv-repo-bot fc572ada3e Update version 2022-06-24 12:55:28 +00:00
junvandGitHub 654f8f4b3d Simply auto upload logic base on Pull request #214 (#217)
* Simply auto upload logic base on Pull request #214

* No bash debugging

* Minor refactor

* Update logic to handle single file or folder
2022-06-24 22:51:50 +10:00
junv-repo-bot 2196929d63 Update version 2022-06-23 13:06:38 +00:00
e703dd4338 Auto upload base on #214 (#215)
* Update aria2.conf

* Add files via upload

* Update Dockerfile

* #214 Refactor the logic and make some of the parameters to be env variables

* #214 Update readme regarding auto upload

* Minor readme change

Co-authored-by: Kevin Rose <61625731+lvtai-py@users.noreply.github.com>
2022-06-23 23:02:16 +10:00
junvandGitHub ece987ec60 Update README.CN.md 2022-04-19 15:13:20 +10:00
junvandGitHub ff8a474b6d Refactor readme (#212)
* Refactor readme env list

* syntax errors fix

* refactor readme support volumes part
2022-04-19 15:08:05 +10:00
junv-repo-bot b6c155207d Update version 2022-04-19 01:13:23 +00:00
junvandGitHub 46fd0a842f Dht issue (#211)
* Move .aria2/dht.dat file to /app folder to solve the issue failed to save dht.dat

* Add env CADDY_LOG_LEVEL to allow user override log levels
2022-04-19 11:04:22 +10:00
junv-repo-bot a20300c9ea Update version 2022-04-15 13:20:48 +00:00
junvandGitHub 86252c1961 Add k8s example (#209) 2022-04-15 23:18:04 +10:00
junv-repo-bot 6493c7cc19 Update version 2022-04-15 12:37:28 +00:00
junvandGitHub 1bd477d89e Upgrade file browser to 2.21.1 and rclone to 1.58 (#208)
* Upgrade file browser to 2.21.1

* Upgrade rclone to 1.58
2022-04-15 22:34:17 +10:00
junvandGitHub 337511813d Remove deploy to heroku button, due to this docker image has been banned by Heroku (#205) 2022-04-12 16:47:09 +10:00
junvandGitHub c4a5f82641 Update README.CN.md 2022-04-06 12:05:26 +10:00
junvandGitHub c2adb8c41e Update README.md 2022-04-06 12:03:45 +10:00
junv-repo-bot ff54b5b92c Update version 2022-03-25 08:51:24 +00:00
junvandGitHub c47b5d19e6 Fix forego compile error (#203) 2022-03-25 19:47:52 +11:00
junv-repo-bot 5108254f44 Update version 2022-03-09 07:51:43 +00:00
junvandGitHub d12c6f7ea2 Refine the health point to return current app version, just for debuging issues (#200) 2022-03-09 18:48:23 +11:00
junv-repo-bot aa1db00ca1 Update version 2022-03-08 11:52:43 +00:00
junvandGitHub 4485fd0437 Fix #197 health check issue when basic auth enabled (#198) 2022-03-08 22:49:32 +11:00
junv-repo-bot a8db9193f8 Update version 2022-01-27 05:38:55 +00:00
junvandGitHub bc90a2992c Update dependencies to the latest version (#191) 2022-01-27 16:35:50 +11:00
junv-repo-bot 50512b4183 Update version 2021-12-11 08:50:30 +00:00
junvandGitHub 8d1a326a23 Add environment variable to allow user disable new version checking (#187) 2021-12-11 19:47:01 +11:00
junv-repo-bot 534b94a31f Update version 2021-10-24 07:01:01 +00:00
junvandGitHub cc16fa5b0b Add aria2 download hook example (#182) 2021-10-24 17:57:57 +11:00
junv-repo-bot 76789658e5 Update version 2021-10-13 13:01:30 +00:00
junv 59c67bad8c Update the app version before build docker containers 2021-10-13 23:57:22 +11:00
junv-repo-bot c2881479a9 Update version 2021-10-13 12:51:45 +00:00
junvandGitHub 1f4a331147 Refine the logic of app new version checker (#181) 2021-10-13 23:48:37 +11:00
junv-repo-bot 461f0e9451 Update version 2021-10-13 12:22:50 +00:00
junv 381e7a760c github action fix 2021-10-13 23:10:55 +11:00
junvandGitHub 56190aea72 Add new version checker (#180)
* Add logic to allow user check new version

* update action
2021-10-13 23:01:35 +11:00
junv 42f1317afe Ignore curl error in github action 2021-10-13 17:23:26 +11:00
junv a6c21b228e Fix syntax issue in bash 2021-10-13 17:13:25 +11:00
junv feb2d5781b Add step to update tag 2021-10-13 16:54:09 +11:00
junvandGitHub 53985992c6 Build forego from source code (#179) 2021-10-12 23:23:10 +11:00
junvandGitHub 963b4ae8d2 create soft link to all user can sync files and folders in rclone (#177) 2021-10-11 16:49:20 +11:00
junvandGitHub 9a58c2a12e Heroku rclone conf (#176)
* Add RCLONE_CONFIG_BASE64 to config rclone on heroku

* Update heroku docker run app.json
2021-10-11 16:13:51 +11:00
junvandGitHub 9e3f772174 Update caddy to 2.4.5 (#175) 2021-10-10 10:38:53 +11:00
junvandGitHub 4107956832 Update ariang to 1.2.2 (#174) 2021-10-10 10:34:42 +11:00
junvandGitHub b29ffe875e Update rclone to 1.56.2 (#173)
* Update rclone to 1.56.2

* Update filebrowser to 2.17.2
2021-10-10 10:24:05 +11:00
junv 291c5cb1a5 Update filebrowser to 2.17.2 2021-10-10 10:15:41 +11:00
junvandGitHub 1a424659d0 Update README.md 2021-08-03 13:11:07 +10:00
junv 91bb9636ff Update bt trackers 2021-06-06 15:23:07 +10:00
junv 86b5f454cd Use master branch 2021-05-21 07:55:50 +10:00
junv 9f469271d8 Add deploy to heroku button 2021-05-21 07:55:50 +10:00
junv cc4d1466d8 use for heroku 2021-05-21 07:55:50 +10:00
junv 8e4de29da2 use dynamic port for heroku mode 2021-05-21 07:55:50 +10:00
junv f14a3806cc Correct env names for heroku 2021-05-21 07:55:50 +10:00
junv ad97d953fd update heroku app.json 2021-05-21 07:55:50 +10:00
junv f31b034b18 add heroku.yml 2021-05-21 07:55:50 +10:00
junv 20bf7b07da Add heroku app.json 2021-05-21 07:55:50 +10:00
junv 1cb67615c3 Bump Rclone,Filebrowser and AriaNg to latest release versions 2021-04-16 16:11:08 +10:00
junv 9f05b5b178 Fix filebrowser sharing issue 2021-04-16 16:04:42 +10:00
junvandGitHub 9a045ddd90 Update README.md 2021-04-07 23:50:42 +10:00
junvandGitHub 5e427d6243 Update README.md 2021-04-07 23:44:28 +10:00
junv 89e6a4eb63 Use Alpine edge to fix the CVE-2020-27780 secutiry volunability issue 2021-04-07 23:35:46 +10:00
junv f11ddb8352 #158 Update url paths for ariaNg and filebrowser 2021-04-07 23:35:46 +10:00
junv 14a3ad5e53 rollback change to install.sh 2021-01-31 15:33:02 +11:00
junv 2d7a2fbe78 switch to docker script for buildx 2021-01-31 15:33:02 +11:00
junv 4796f04e6f fix build error on arm64 2021-01-31 15:33:02 +11:00
junvandGitHub 6b2f07ca73 Create FUNDING.yml 2021-01-30 07:42:48 +11:00
junvandGitHub fb8dae785e Update README.CN.md 2021-01-25 23:03:45 +11:00
junvandGitHub 9d3cd8cff8 Update README.CN.md 2021-01-25 23:03:15 +11:00
junvandGitHub 554489a936 Update README.CN.md 2021-01-25 23:02:52 +11:00
junvandGitHub 5086ded836 Update README.md 2021-01-25 23:02:08 +11:00
junv 601b7426c4 Debug non localhost access issue 2021-01-20 10:28:51 +11:00
junv 90a4e37726 offer a way to disable rclone 2021-01-07 16:22:06 +11:00
junv fc3f3035ac tidy up 2021-01-01 22:28:00 +11:00
junv b8c7667523 refine github action to publish latest when tagging 2021-01-01 18:03:36 +11:00
junv 3097a69b72 refine github action 2021-01-01 17:57:48 +11:00
junv 8de7bcead4 build and publish docker image when tagging 2021-01-01 17:52:31 +11:00
junv 8c303a67e5 Fix the build 2021-01-01 17:46:06 +11:00
junv 36d602b6fa update readme for multi arch image 2021-01-01 17:46:06 +11:00
junv aa8fa89a56 optimize the logic for docker image tags 2021-01-01 17:25:53 +11:00
junv bdd122231c prevent duplicate build for pull request 2021-01-01 17:25:53 +11:00
junv 5670d183fe Using multi arch to build docker image for multiple archtectures 2021-01-01 17:25:53 +11:00
junv 4d26b3527e upgrade filebrowser to v2.11.0 2021-01-01 08:18:36 +11:00
expoliandjunv 9aec111d0f Update arm64.Dockerfile
update the rclone arm64 based download url
2020-11-25 17:04:12 +11:00
junv d70d81ea73 Update configuration for anchore scanning 2020-11-25 16:05:35 +11:00
junv 8bab5e7280 Try to fix the error of docker vulnerability check error 2020-11-25 16:05:35 +11:00
expoliandjunv f12066c0fa Update arm64.Dockerfile
caddy 平台错误、无法运行
2020-11-25 15:43:51 +11:00
junv 6bca5ee492 #87 Upgrade arm dockerfiles to support caddy 2 2020-11-15 23:42:40 +11:00
junv 438542ea38 #87 Enable auto ssl 2020-11-15 23:20:41 +11:00
junv d7e26e6e0e #87 Update secureCaddyfile with caddy 2 2020-11-15 23:20:41 +11:00
junv cbddc46cb6 #87 Solve the caddy and rclone's permission issues when running user is not root 2020-11-15 23:20:41 +11:00
junv 4e72368e72 Start upgrading caddy to 2 2020-11-15 23:20:41 +11:00
junv 0c9ac2e563 Polish readme 2020-10-01 23:58:04 +10:00
junv 838c645834 update rclone 2020-10-01 23:41:53 +10:00
junv 0b763b18f8 Update filebrowser to 2.7.0 file arm cpu platforms 2020-10-01 23:34:05 +10:00
junvandGitHub 22dc0fd7c3 Merge pull request #122 from wahyd4/vulnerability-scan
Fix image vulnerability scan failure
2020-10-01 23:32:53 +10:00
junv f45d151f48 use v1 to fix the build 2020-10-01 23:29:55 +10:00
junv 0079401849 build fix 2020-10-01 23:27:26 +10:00
junv 41aa56229b Fix image vulnerability scan failure 2020-10-01 23:23:02 +10:00
junvandGitHub 0952d90995 Merge pull request #120 from wahyd4/rclone-docs
Add docs about how to config rclone
2020-09-15 17:55:34 +10:00
junv c4e37d37d3 Add docs about how to use rclone 2020-09-15 17:54:07 +10:00
junvandGitHub 2e621e8121 Merge pull request #117 from DanielZhang17/master
fix filebrowser inline preview problem
2020-09-15 13:29:40 +10:00
Anran ZhangandGitHub 151d20b3ad Merge pull request #1 from DanielZhang17/fb-fix/etc/mime.types
Add mailcap to fix some filebrowser preview issues
2020-09-14 20:33:09 -03:00
Anran ZhangandGitHub c4afc92c90 Add mailcap to fix some inline preview issues
fix /etc/mime.types file is missing problem that causes the filebrowser not treating some videos as video files and showing no inline preview window.
2020-09-14 20:29:55 -03:00
junvandGitHub ef1419fddb Update README.CN.md 2020-09-15 07:42:02 +10:00
junvandGitHub 13e472922a Update README.md 2020-09-14 09:15:29 +10:00
junvandGitHub 4eae54e323 Merge pull request #116 from wahyd4/fb-2.7.0
Update filebrowser version
2020-09-13 11:28:19 +10:00
junv 14f21d5a24 Update filebrowser versions 2020-09-13 11:27:46 +10:00
junvandGitHub 1024aa2a31 Merge pull request #114 from wahyd4/healthcheck
Add default healthcheck script
2020-09-13 11:14:50 +10:00
junv d77816ef81 Add default healthcheck script 2020-09-13 11:09:27 +10:00
junvandGitHub 6c04b6ac25 Merge pull request #112 from wahyd4/rclone
Rclone
2020-09-13 00:57:23 +10:00
junv c36e68fb82 Update readme 2020-09-13 00:54:15 +10:00
junv 44bd3f7183 Update readme 2020-09-13 00:50:29 +10:00
junv 6dac58c8a8 Fix docker build 2020-09-13 00:24:30 +10:00
junv 79c6dd7874 Apply rclone feature to arm images 2020-09-13 00:19:01 +10:00
junv c0e66890ad Update webgui cache folder to solve the permission issue for non root user 2020-09-13 00:06:01 +10:00
junv e9e3e4083c Start integrating rclone, had rclone running but missing default configuration file 2020-09-12 17:07:12 +10:00
junvandGitHub d64c15de5e Update README.md 2020-09-12 07:57:16 +10:00
junvandGitHub ff51d1ae77 Update README.md 2020-08-30 19:57:12 +10:00
junvandGitHub c7ade53ded Update README.md 2020-08-30 19:53:21 +10:00
junvandGitHub a143c3ba81 Update README.md 2020-08-09 15:50:56 +10:00
junvandGitHub 91320c0b5e Update README.md 2020-08-08 00:08:23 +10:00
junvandGitHub 36add55978 Update README.md 2020-08-06 09:19:33 +10:00
junv 8c6e3d14cf wording change 2020-07-25 17:19:05 +10:00
junvandGitHub 39ef5ae91e Merge pull request #108 from wahyd4/filebrowser-2.5.0
bump filebrowser to 2.5.0
2020-07-25 17:06:39 +10:00
junv 671be70304 bump filebrowser to 2.5.0 2020-07-25 17:03:14 +10:00
junvandGitHub 123d88a269 Merge pull request #107 from wahyd4/no-auto-caddy-installation-script
Update caddy installation script due to the old one has been deleted
2020-07-25 16:48:50 +10:00
junv 3278cb4cfe Update caddy installation script due to the old one has been deleted 2020-07-25 16:45:41 +10:00
junvandGitHub bfe24f109f Create stale.yaml 2020-07-24 11:16:50 +10:00
junvandGitHub 1f2e432d32 Merge pull request #104 from wahyd4/fix-auto-https
Try to fix the issue of auto ssl
2020-06-25 00:13:03 +10:00
junv 15279ef33a Update dockerfile for arm CPUs accordingly 2020-06-25 00:10:00 +10:00
junv 68f75b3b3b Try to fix the issue of auto ssl 2020-06-25 00:03:17 +10:00
junvandGitHub a2a19dcf79 Merge pull request #103 from wahyd4/update-filebrowser-and-ariang
Update Filebrowser and Ariang
2020-06-24 23:44:38 +10:00
junv 73bba0edc1 Update Filebrowser and Ariang 2020-06-24 23:41:42 +10:00
junv d7599bda00 add suggestion about running this docker image on raspberry pi 2020-04-08 08:02:21 +10:00
junvandGitHub 9a86dad52c Merge pull request #93 from wahyd4/rollback-filebrowser
Rollback to file browser 2.0.16 to solve the share links problem
2020-04-02 14:48:04 +11:00
junv 4a76af2ea6 Rollback to file browser 2.0.16 to solve the share links problem 2020-04-02 14:42:57 +11:00
junvandGitHub ea6398227d Merge pull request #88 from wahyd4/update-filebrowser
Update file browser to the latest release version
2020-04-01 07:51:11 +11:00
junv 532ec227bf Update file browser to the latest release version 2020-04-01 07:48:11 +11:00
junvandGitHub 9230a74017 Merge pull request #85 from comicchang/master
write RPC_SECRET to AriaNG config
2020-04-01 07:33:00 +11:00
junvandGitHub b8bbebdcb3 Merge pull request #86 from yingshaoxo/master
set bittorrent seed-ratio to 100 by default; warning user to mount /app/conf
2020-03-31 17:22:56 +11:00
yingshaoxo 5782a27a72 change provide 2020-03-31 14:11:19 +08:00
yingshaoxo 2a4159b004 set bittorrent seed-ratio to 100 by default; warning user to mount /app/conf 2020-03-31 12:11:37 +08:00
Comic Chang 4128723308 write RPC_SECRET to AriaNG config 2020-03-18 12:25:01 +08:00
junv 4c16558d9a Update filebrower version to v2.0.16 2019-12-24 11:26:35 +11:00
junvandGitHub efb06e6c4d Merge pull request #79 from wahyd4/new-trackers
Update trackers
2019-12-24 11:25:03 +11:00
junv 6fdd4e91e1 Update trackers 2019-12-24 11:23:05 +11:00
junvandGitHub 19b76d87a8 Merge pull request #78 from wahyd4/some-wording-change
Some wording change based on the change from @sanjusss
2019-12-24 11:14:05 +11:00
junv 39ee538b56 Some wording change based on the change from @sanjusss 2019-12-24 11:03:32 +11:00
junvandGitHub 384b3d88c5 Merge pull request #77 from sanjusss/fix-76
fix #76
2019-12-24 10:59:31 +11:00
sanjusss 00527d3f19 fix #76 2019-12-23 21:54:12 +08:00
junvandGitHub 74061ac37d Merge pull request #72 from wahyd4/add-docker-scan
Add docker image scan
2019-11-14 09:14:13 +11:00
junv 332cbd4921 Add docker image scan 2019-11-14 09:08:13 +11:00
junvandGitHub 3ba668552a Merge pull request #70 from wahyd4/junwei/no-localhost
Don't use localhost to avoid some weird dns issue in some cases
2019-10-28 09:30:40 +11:00
junv 477ce7d086 Don't use localhost to avoid some weired dns issue in some cases 2019-10-28 09:28:36 +11:00
junvandGitHub 995eefa545 Merge pull request #68 from wahyd4/junwei/minor-md-update
Update readme to specify protocol when binding domain
2019-10-26 21:40:01 +11:00
junvandGitHub 9dbaa62d38 Merge branch 'master' into junwei/minor-md-update 2019-10-26 21:39:42 +11:00
junv 7b53a0a3ea Update readme to specify protocol when binding domain 2019-10-26 21:39:07 +11:00
junvandGitHub 9a1d31e937 Merge pull request #65 from wahyd4/junwei/ariang-1.1.4
Bump Ariang to 1.1.4
2019-10-22 15:12:21 +11:00
junv b6b6ed6f57 bump ariang to 1.1.4 2019-10-22 15:09:53 +11:00
junv 4b80de30f5 Start an experiment to see if anyone going to support this project. 2019-10-10 20:25:16 +11:00
junvandGitHub aae32e6edb Merge pull request #62 from wahyd4/junwei/optional-cap
Allow user to use root to run this application
2019-10-10 20:14:54 +11:00
junv 94b7e09cd1 Allow user to use root to run this application 2019-10-10 20:11:56 +11:00
junvandGitHub 38abdb636c Update issue templates 2019-09-03 13:22:45 +10:00
junv 8f3380f7e0 Update readme about how to mount aria2.conf and aria2.session 2019-09-02 08:24:41 +10:00
junv 9753284f11 Update workflow name 2019-09-01 19:15:42 +10:00
junv 990266f172 Use 3rd party to build and push docker image 2019-09-01 19:10:21 +10:00
junv 2df47bd0b9 github actions fixing.... 2019-09-01 17:57:39 +10:00
junv 48ef649edd trying 2019-09-01 17:54:36 +10:00
junv 08216e7998 github actions 2019-09-01 17:51:23 +10:00
junv 9be91ee609 github actions testing 2019-09-01 17:43:35 +10:00
junv 9ea8d8bf43 debug 2019-09-01 17:36:48 +10:00
junv 032be46fcf debug 2019-09-01 17:34:01 +10:00
junv f86ed0e78a Only run push on master 2019-09-01 17:31:23 +10:00
junv cd9c4b7dee Try to fix multiple line run commands 2019-09-01 17:21:28 +10:00
junv edea603ff1 Only using github actions and remove travis 2019-09-01 17:18:48 +10:00
junvandGitHub 594769e8ab Merge pull request #50 from wahyd4/junwei/no-chown-data-folder
Do not run chown to file downloading folder
2019-09-01 17:17:01 +10:00
junv fd33d75186 #48 Do not run chown to file doownloading folder 2019-09-01 17:05:02 +10:00
junvandGitHub 374df3a244 Update README.CN.md 2019-08-29 15:16:14 +10:00
junvandGitHub 588d294ea4 Update README.md 2019-08-29 15:15:56 +10:00
junvandGitHub 605211a1f2 Update README.CN.md 2019-08-29 15:03:08 +10:00
junvandGitHub c0b17f569a Update README.md 2019-08-29 15:02:54 +10:00
junvandGitHub 09272f54b5 Add github workflow 2019-08-28 09:20:34 +10:00
junvandGitHub b6b2349f8f Merge pull request #43 from wahyd4/junwei/custom-user-binding
Allow user use custom user and group by setting PUID and PGID
2019-07-18 23:32:22 +10:00
junv ba5ecb7e90 refine dockerfile 2019-07-18 23:30:34 +10:00
junv 400b063fcb due to filebrowser installation script issue so switch to use the github binary 2019-07-18 23:18:46 +10:00
junv c2bafc9d71 try to add bash option to see whether it works 2019-07-18 22:59:26 +10:00
junv 17a35679c6 wording refine 2019-07-18 22:40:54 +10:00
junv 67374de106 update readme to add docker-compose 2019-07-18 22:40:32 +10:00
junv c602376541 Update arm dockerfiles 2019-07-18 22:33:11 +10:00
junv 432a9efaa7 Merge branch 'master' into junwei/custom-user-binding 2019-07-18 22:19:26 +10:00
junv fe01505242 Update readme and refine some naming things 2019-07-18 22:18:35 +10:00
junv 810c4f81c9 Bump version to 3.0 due to we had removed 6800 port 2019-07-18 17:57:48 +10:00
junvandGitHub a259134ae3 Merge pull request #44 from gnehs/master
Add websocket support & update ariang to 1.1.1
2019-07-18 17:51:37 +10:00
gnehsandGitHub cd107a137e update ariang to 1.1.1 2019-07-18 14:43:09 +08:00
gnehsandGitHub bdcab8c28f websocket 2019-07-18 14:42:21 +08:00
junvandGitHub 0bf3c50b61 Merge branch 'master' into junwei/custom-user-binding 2019-07-16 23:57:44 +10:00
junvandGitHub ab9c4b5f14 Update .travis.yml 2019-07-16 23:55:02 +10:00
junv 1b130c27a3 Allow user to override default uid and gid. Default ones are 1000:1000 2019-07-16 23:34:29 +10:00
junv 6b434869c3 add non root user make everything related to the application belongs to that user. Huge thanks to @whlsxl as I learned a lot from his code changes but I didn't use custom docker image 2019-07-16 23:17:43 +10:00
junv d83b9d5084 simply dockerfile again 2019-07-16 22:32:51 +10:00
junvandGitHub c105c39ee8 Update README.CN.md 2019-07-15 09:38:36 +10:00
junvandGitHub 7807825e08 Update README.md 2019-07-15 09:37:52 +10:00
junv 3100858c42 update readme 2019-07-13 14:58:21 +10:00
junvandGitHub e81b6ef71b Update README.md 2019-07-13 14:06:48 +10:00
junvandGitHub 3d7d585c25 Update README.md 2019-07-13 13:48:59 +10:00
junvandGitHub 1485c0682f Merge pull request #40 from wahyd4/simplify-and-stablization
Simplify and stablization
2019-07-13 13:46:56 +10:00
junv 13b5e7557b Put english readme first 2019-07-13 13:42:09 +10:00
junv 5f3d232f3a Using forogo to manage mutliple processes 2019-07-13 13:16:16 +10:00
junv 54faacb741 use port 80 to serve 6800 jsonrpc request 2019-07-13 11:33:41 +10:00
junv c8e4704aa7 Speicfy port when boot file browser instead of caddy 2019-06-15 16:52:02 +10:00
junv 4332e37d40 Merge branch 'master' of github.com:wahyd4/aria2-ariang-docker 2019-06-15 16:41:16 +10:00
junv 58d3edf61a Update caddy startup command to specify port 2019-06-15 16:41:11 +10:00
junvandGitHub e2b7a41040 Update README.md 2019-05-22 16:57:40 +10:00
junvandGitHub bb8a60ddbf Update README.md 2019-05-22 16:00:26 +10:00
junvandGitHub 1e8a02ebe3 Update README.md 2019-05-22 13:03:04 +10:00
junvandGitHub f6634fea89 Merge pull request #37 from AtrisMio/patch-redir
Patch redir
2019-05-19 12:03:16 +10:00
AtarisandGitHub cee7668e8c Update SecureCaddyfile 2019-05-19 00:26:55 +08:00
AtarisandGitHub 7175940215 patch redir 2019-05-19 00:24:51 +08:00
junv 93aec37485 update readme 2019-05-18 09:10:06 +10:00
junv a04e6a9b06 speed up building 2019-05-18 09:00:35 +10:00
junvandGitHub 3f115132d0 Merge pull request #36 from wahyd4/add-license-1
Create LICENSE
2019-05-18 08:59:32 +10:00
junvandGitHub 098ffb3c07 Merge branch 'master' into add-license-1 2019-05-18 08:53:35 +10:00
junvandGitHub b5e55f33a5 Merge pull request #35 from wahyd4/junwei/ad-ci-to-build-arms
Use osx to build image for different CPU platforms
2019-05-18 08:52:07 +10:00
junvandGitHub 6c0d9a7987 Create LICENSE 2019-05-18 08:51:50 +10:00
junv 288e429d47 Fix build 2019-05-18 08:41:19 +10:00
junv 89a9a34727 Unfortunately travis ci doesnn't support mac 2019-05-18 08:37:24 +10:00
junv b9026d8ca3 Try to use osx to build image 2019-05-18 08:32:14 +10:00
junv 6fe9c65cfb Try to fix the build condition 2019-05-18 00:44:27 +10:00
junv 0a4eff4988 Update 2019-05-18 00:39:57 +10:00
junv 230a21fa4f Update readme 2019-05-18 00:39:09 +10:00
junvandGitHub cc9cddc232 Merge pull request #34 from wahyd4/junwei/update-ariang-arms
Update AriaNg version to 1.1.0 and upgrade the arm dockerfiles to date.
2019-05-18 00:36:59 +10:00
junv a311641b41 Simply build script 2019-05-18 00:35:29 +10:00
junv 310116c3d0 skip push command 2019-05-18 00:30:22 +10:00
junv fbf75ca833 Merge branch 'master' into junwei/update-ariang-arms 2019-05-18 00:21:14 +10:00
junv a4d0f6ac08 Try to update docker version 2019-05-18 00:18:34 +10:00
junv 25d1446c72 update version 2019-05-18 00:12:08 +10:00
junv bc00550785 update ariang 2019-05-18 00:07:17 +10:00
junv a323036beb Correct badges 2019-05-17 23:22:12 +10:00
junv a5a0437b2d fix the build 2019-05-17 23:16:12 +10:00
junv bf5d416c32 Try to tricky way to sharing docker image between stages 2019-05-17 23:10:52 +10:00
junv 53b72f121a Replace circle ci with travis ci 2019-05-17 22:54:31 +10:00
junv 56ca73734f Fix the pipeline... 2019-05-17 22:29:50 +10:00
junv 32d7ad7dbe Try to export tag 2019-05-17 22:27:05 +10:00
junv 83cd4cd048 Passing image tag id by using environment variables 2019-05-17 22:22:13 +10:00
junv 025ab4d568 Merge branch 'master' of github.com:wahyd4/aria2-ariang-docker 2019-05-17 22:14:34 +10:00
junv bf54cf929b enable docker layers caching, so the image can be pass on 2019-05-17 22:13:46 +10:00
junv 478b4a0bd8 enable docker layers caching, so the image can be pass on 2019-05-17 22:11:14 +10:00
junvandGitHub baeae63b49 Merge pull request #33 from wahyd4/junwei/remove-file-browser-from-caddy
Junwei/remove file browser from caddy
2019-05-17 22:02:11 +10:00
junv 85cd7bb39b update caddy config and fix shell command issue 2019-05-17 22:00:02 +10:00
junv 2e15256f68 get rid of file browser plugin mode 2019-05-17 16:39:04 +10:00
junv 44b80d8d4a Remove duplicated vesion key 2019-05-05 19:29:56 +10:00
junv 68980742f2 Pipeline configuration fix 2019-05-05 19:28:32 +10:00
junv 7327766b25 fix format issue 2019-05-05 19:22:21 +10:00
junv f0f51a6d3d Update pipeline script, and skip push docker image on non master branches 2019-05-05 19:16:12 +10:00
junv feaee60510 update readme 2019-04-09 11:15:57 +10:00
junv 7ac1a17a35 Update docs for solving no speed issue. 2019-03-16 11:02:43 +08:00
junv 18afebb3d0 fix build script 2019-03-16 10:32:53 +08:00
junvandGitHub 74f9facb1f Merge pull request #25 from wahyd4/file-browser-db
File browser db
2019-03-16 10:27:00 +08:00
junv 46ac16cd44 only push docker image on master branch 2019-03-16 10:22:11 +08:00
junv a8dc6c2dd7 Add ability to volume file browser settings db 2019-03-16 10:16:13 +08:00
junv 187d6d0e93 Update naming to file browser 2019-03-16 09:44:43 +08:00
junvandGitHub 7f54b16b33 Merge pull request #24 from wahyd4/restructure
Restructure docker image
2019-03-15 11:21:38 +08:00
junv 631690a78a Restructure docker image 2019-03-15 11:20:26 +08:00
junvandGitHub f73acf5bc5 Merge pull request #23 from wahyd4/changing-urls
Changing urls
2019-03-15 11:12:00 +08:00
junv cc09684c70 Update the ariang url to /ui/ 2019-03-15 11:10:51 +08:00
junv 2a2b520a6f Change the file manager url path to root and ariang to /aria/ 2019-03-15 11:09:32 +08:00
junv b199a28365 Change the log level back to default to show more information 2019-03-15 10:52:29 +08:00
junvandGitHub 0a8f98eef5 Merge pull request #22 from wahyd4/ipv6
#21 Disable ipv6 by default to solve the dns issue
2019-03-15 10:50:22 +08:00
junv 6c8318d9c1 #21 Disable ipv6 by default to solve the dns issue 2019-03-15 10:48:42 +08:00
junv 5fd5f4ce17 Update best trackers 2019-03-03 08:27:38 +11:00
junvandGitHub 50688a3f36 Update README.md 2019-02-21 07:46:45 +11:00
junvandGitHub f211c6d1db Update README.md 2019-02-19 17:39:37 +11:00
junv ff481ea1bc Update naming of image tag 2019-02-19 17:17:09 +11:00
junv 01fd23d42f try 2019-02-19 17:13:48 +11:00
junv 3551ae0cc1 update setting 2019-02-19 17:12:28 +11:00
junv 03943996dc update config 2019-02-19 17:08:53 +11:00
junv a9236ef0a9 Update the name of file manager to file browser 2019-02-19 10:57:51 +11:00
junv 6fa402a13c Update caddy script to fix the build 2019-02-19 10:26:20 +11:00
junvandGitHub c4e530e8f6 Update trackers 2019-02-01 11:56:48 +11:00
junv adfe41d96f Update readme 2019-01-03 17:15:44 +11:00
junvandGitHub 7a214e1251 Merge pull request #14 from wahyd4/arm
Add arm32/64 support
2019-01-03 16:57:20 +11:00
junv ba2978d70a #13 Add arm32 cpu support 2019-01-03 16:54:31 +11:00
junv fedbae4c87 #13 Add arm64 cpu support 2019-01-03 16:51:04 +11:00
junv d7553a9c2f Correct url 2018-12-15 17:51:43 +11:00
junv 2a6760adfb Merge branch 'master' of github.com:wahyd4/aria2-ariang-docker 2018-12-15 17:31:19 +11:00
junv df32852e79 bump ariang to 1.0.0 2018-12-15 17:31:02 +11:00
junvandGitHub 696c0c2058 #11 Update document about how to enable HTTPS 2018-12-10 09:35:35 +11:00
junv 1c08fa7404 Fix the file manager authentication issue 2018-08-03 18:57:42 +10:00
junv 7fa8628072 Wording change 2018-07-11 23:01:35 +10:00
junv 62138a0c2d Add instruction to allow user to build their own docker image 2018-07-11 22:54:33 +10:00
37 changed files with 1459 additions and 286 deletions
+12
View File
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [wahyd4]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: https://www.paypal.me/junvzhao
+26
View File
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
## Please try to use English to describe your question or issue.
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
+17
View File
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: "Closed due to no further updates have been provided."
+102
View File
@@ -0,0 +1,102 @@
name: Build and Push docker image
on:
pull_request:
branches: master
push:
branches:
- '*'
tags:
- v*
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'wahyd4/aria2-ariang-docker'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
-
name: Update APP VERSION
if: contains(github.ref, '/tags/v')
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo $VERSION > APP_VERSION
-
name: Prepare
id: prepare
run: |
DOCKER_IMAGE=wahyd4/aria2-ui
DOCKER_PLATFORMS=linux/amd64,linux/arm/v7,linux/arm64
VERSION=edge
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/v}
fi
TAGS="--tag ${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS --tag ${DOCKER_IMAGE}:latest"
fi
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \
${TAGS} --file Dockerfile .
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Cache Docker layers
uses: actions/cache@v2
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Docker Buildx (build)
run: |
docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }}
-
name: Login to DockerHub
if: contains(github.ref, '/heads/master') || contains(github.ref, '/tags/v')
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASS }}
-
name: Push docker images to Dockerhub
if: contains(github.ref, '/heads/master') || contains(github.ref, '/tags/v')
run: |
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
-
name: Inspect image
if: contains(github.ref, '/heads/master') || contains(github.ref, '/tags/v')
run: |
docker buildx imagetools inspect ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}
-
name: Commit changes
if: contains(github.ref, '/tags/v')
uses: EndBug/add-and-commit@v7
with:
author_name: junv-repo-bot
author_email: me@toozhao.com
message: 'Update version'
add: 'APP_VERSION'
push: true
branch: master
-
name: Update tag
if: contains(github.ref, '/tags/v')
env:
API_KEY: ${{ secrets.BadgeAPIKey }}
run: |
VERSION=${GITHUB_REF#refs/tags/v}
curl --max-time 6 -XPUT -D- 'https://badges.toozhao.com/val/aria2-ui-docker' \
-H 'Content-Type: application/json' \
-H 'API_KEY': ${API_KEY} \
-d '{"value": "'${VERSION}'"}' || true
+23
View File
@@ -0,0 +1,23 @@
name: Docker Image Vulnability Check
on:
pull_request:
branches: master
push:
branches:
- '*'
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'wahyd4/aria2-ariang-docker'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build the Docker image
run: docker build . --file Dockerfile --tag local/aria-ui:latest
- name: Scan image
uses: anchore/scan-action@v2
with:
image: "local/aria-ui:latest"
fail-build: true
severity-cutoff: high
- name: grype scan JSON results
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done
+2
View File
@@ -0,0 +1,2 @@
conf/rclone.conf
.devcontainer
+1
View File
@@ -0,0 +1 @@
5.2.1
+33
View File
@@ -0,0 +1,33 @@
{$DOMAIN}
log {
level {env.CADDY_LOG_LEVEL}
output stderr
}
redir /ui / 301
redir /ui/ / 301
redir /rclone /rclone/ 301
redir /files /files/ 301
reverse_proxy /rpc 127.0.0.1:6800
reverse_proxy /jsonrpc 127.0.0.1:6800
route /rclone/* {
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
}
route /files/* {
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
}
route /ping {
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
file_server
encode gzip
+67
View File
@@ -0,0 +1,67 @@
FROM golang:alpine AS build-forego
RUN apk add --no-cache git openssh
WORKDIR /app
RUN git clone https://github.com/wahyd4/forego.git \
&& cd forego \
&& git checkout fix-go-mod \
&& go mod download \
&& go build -o forego \
&& chmod +x forego
FROM alpine:edge
LABEL AUTHOR=Junv<wahyd4@gmail.com>
WORKDIR /app
ENV RPC_SECRET=""
ENV ENABLE_AUTH=false
ENV ENABLE_RCLONE=true
ENV DOMAIN=:80
ENV ARIA2_USER=user
ENV ARIA2_PWD=password
ENV ARIA2_SSL=false
ENV ARIA2_EXTERNAL_PORT=80
ENV PUID=1000
ENV PGID=1000
ENV CADDYPATH=/app
ENV RCLONE_CONFIG=/app/conf/rclone.conf
ENV XDG_DATA_HOME=/app/.caddy/data
ENV XDG_CONFIG_HOME=/app/.caddy/config
ENV XDG_CACHE_HOME=/app/.cache
ENV RCLONE_CONFIG_BASE64=""
ENV ENABLE_APP_CHECKER=true
ENV CADDY_LOG_LEVEL=INFO
ENV RCLONE_AUTO_UPLOAD_PROVIDER=
ENV RCLONE_AUTO_UPLOAD_REMOTE_PATH=/downloads
ENV RCLONE_AUTO_UPLOAD_FILE_MIN_SIZE=1K
ENV RCLONE_AUTO_UPLOAD_FILE_MAX_SIZE=100G
ADD install.sh aria2c.sh caddy.sh Procfile init.sh start.sh rclone.sh new-version-checker.sh APP_VERSION /app/
ADD conf /app/conf
ADD Caddyfile SecureCaddyfile HerokuCaddyfile /usr/local/caddy/
COPY --from=build-forego /app/forego/forego /app
RUN ./install.sh
RUN rm ./install.sh
# For config files
VOLUME /app/conf/
# For file downloading
VOLUME /data
# For rclone cache and aria2 DHT files
VOLUME /app/.cache
EXPOSE 80 443 6881
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost/ping || exit 1
CMD ["./start.sh"]
+39
View File
@@ -0,0 +1,39 @@
{
admin off
auto_https off
}
:PORT
basicauth / {
ARIA2_USER ARIA2_PWD_ENCRYPT
}
redir /ui / 301
redir /ui/ / 301
redir /rclone /rclone/ 301
redir /files /files/ 301
reverse_proxy /jsonrpc 127.0.0.1:6800
route /rclone/* {
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
}
route /files/* {
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
}
route /ping {
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
file_server
encode gzip
log {
output stderr
}
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [2019] [Junwei Zhao]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+5
View File
@@ -0,0 +1,5 @@
caddy: /app/caddy.sh
filebrowser: /app/filebrowser -p 8080 -d /app/filebrowser.db -r /data -b /files
aria2c: /app/aria2c.sh
rclone: /app/rclone.sh
newer_version_checker: /app/new-version-checker.sh
+170
View File
@@ -0,0 +1,170 @@
Aria2 + AriaNg
[English](https://github.com/wahyd4/aria2-ariang-docker/blob/master/README.md) | 简体中文
> 🚨 注意:由于本人精力有限,现决定将主要精力放在更新功能,和英文版本文档。中文版本文档即日起暂停更新,欢迎志愿者对英文说明进行翻译或者赞助本项目,助力我投入更多时间。谢谢。(2022年4月19日)
[![](https://images.microbadger.com/badges/image/wahyd4/aria2-ui.svg)](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
[![Docker Pulls](https://img.shields.io/docker/pulls/wahyd4/aria2-ui.svg)](https://hub.docker.com/r/wahyd4/aria2-ui/)
[![Github Build](https://github.com/wahyd4/aria2-ariang-docker/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/wahyd4/aria2-ariang-docker/actions)
[![Page Views Count](https://badges.toozhao.com/badges/01EJ791D8BB43PDS8D7PP7H0YE/green.svg)](https://badges.toozhao.com/stats/01EJ791D8BB43PDS8D7PP7H0YE "Get your own page views count badge on badges.toozhao.com")
**如果你喜欢这个项目,请考虑微信打赏,让我更有动力来不断更新,谢谢!**
<img src="https://raw.githubusercontent.com/wahyd4/work-in-australia/766592ac6318027d7b3c334d8c50ca80818eeff8/wepay.jpg" alt="buy me a drink" width="120"/>
本镜像包含 Aria2、AriaNg 和File Manager,主要方便那些用户期望只运行一个镜像就能实现图形化下载文件和在线播放文件。(类似离线下载的功能),只使用一个 Docker 镜像也方便用户在群晖NAS 中运行本程序。
- [功能特性](#功能特性)
- [推荐使用的docker image tag](#推荐使用的docker-image-tag)
- [安装与运行](#安装与运行)
- [快速运行](#快速运行)
- [开启所有功能](#开启所有功能)
- [使用docker-compose 运行](#使用docker-compose-运行)
- [支持的 Docker 环境变量](#支持的-docker-环境变量)
- [支持的 Docker volume 属性](#支持的-docker-volume-属性)
- [自动 SSL](#自动-ssl)
- [自行构建镜像](#自行构建镜像)
- [Docker Hub](#docker-hub)
- [在 Kubernetes 里面运行 (我的最爱)](#在-kubernetes-里面运行-我的最爱)
- [使用 Docker compose 来运行](#使用-docker-compose-来运行)
- [常见问题](#常见问题)
AriaNG
![Screenshot](https://github.com/wahyd4/aria2-ariang-x-docker-compose/raw/master/images/ariang.jpg)
File Browser
![File Browser](https://github.com/wahyd4/aria2-ariang-docker/raw/master/filemanager.png)
## 功能特性
* [Aria2](https://aria2.github.io) 文件下载工具(支持SSL )
* [AriaNg](https://github.com/mayswind/AriaNg) 通过 UI 来操作,下载文件
* [Rclone](https://rclone.org) 同步文件到云盘
* 自动 HTTPS Let's Encrypt
* 支持绑定自定义用户ID,可以主机上的非`root`用户,也可以管理下载的文件
* Basic Auth 用户认证
* 文件管理和视频播放 ([FileBrowser](https://filebrowser.org/),注意默认情况下,只能访问和管理 `/data` 目录下的文件)
* 支持ARM CPU 架构,因此可以在树莓派等设备上运行,
## 推荐使用的docker image tag
* wahyd4/aria2-ui:latest
> Docker会为你自动选择对应CPU平台的image. e.g. arm64v8 或者 x86_64 平台
## 安装与运行
### 快速运行
```bash
docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 -t aria2-ui .
```
* Aria2: <http://yourip>
* Filebrowser: <http://yourip/files>
* Rclone: <http://yourip/rclone>
* 请使用 admin/admin 进行登录Filebrowser, 在如果没有修改`ARIA2_USER`,`ARIA2_PWD`的情况下,请使用`user`/`password`登录`Rclone`
### 开启所有功能
```bash
docker run -d --name ariang \
-p 80:80 \
-p 443:443 \
-e PUID=1000 \
-e PGID=1000 \
-e ENABLE_AUTH=true \
-e RPC_SECRET=Hello \
-e DOMAIN=https://example.com \
-e ARIA2_SSL=false \
-e ARIA2_USER=user \
-e ARIA2_PWD=pwd \
-e ARIA2_EXTERNAL_PORT=443 \
-v /yourdata:/data \
-v /app/a.db:/app/filebrowser.db \
-v /yoursslkeys/:/app/conf/key \
-v <conf files folder>:/app/conf \
wahyd4/aria2-ui
```
### 使用docker-compose 运行
如果你不想记住那些命令行,你也可以使用docker-compose来将配置放在`docker-compose.yaml`文件中
```yaml
version: "3.5"
services:
aria2-ui:
restart: unless-stopped
image: wahyd4/aria2-ui:latest
environment:
- ENABLE_AUTH=true
- ARIA2_USER=hello
- ARIA2_PWD=world
- DOMAIN=http://toozhao.com
volumes:
- ./data:/data
```
然后使用 `docker-compose up -d` 运行即可
### 支持的 Docker 环境变量
* `ENABLE_AUTH` 启用 Basic auth(网页简单认证) 用户认证
* `ENABLE_RCLONE` 是否启用 RCLONE,由于Rclone 的初次运行需要从Github 下载文件,由于你懂的原因,可能文件下载失败,进而导致整个程序崩溃,这时你需要设置为`false`
* `ARIA2_USER` Basic Auth 用户认证用户名,Rclone也使用该参数
* `ARIA2_PWD` Basic Auth 密码,Rclone也使用该参数
* `ARIA2_EXTERNAL_PORT` 从外部可以访问到的 Aria2 端口,默认为 HTTP 的`80`
* `PUID` 需要绑定主机的Linux用户ID,可以通过`cat /etc/passwd` 查看用户列表, 默认UID 是`1000`
* `PGID` 需要绑定的主机的Linux 用户组ID,默认GID 是`1000`
* `RPC_SECRET` Aria2 RPC 加密 token
* `DOMAIN` 绑定的域名, 当绑定的域名为`HTTPS`时,即为启用`HTTPS` 例: `DOMAIN=https://toozhao.com`
* `RCLONE_CONFIG_BASE64` 通过`base64` 字符串的形式配置rclone.conf。主要给在Heroku平台上运行时使用,请使用命令行 `cat /app/conf/rclone.conf | base64` 或者其他任何在线base64在线工具 [比如这个](https://www.base64encode.org/)来把`rclone.conf`的内容生成`base64`字符串。在使用本环境变量的同时,请确保`ENABLE_RCLONE`设置为`true`
* `ENABLE_APP_CHECKER`,默认情况下本程序会每天向远程服务器发送一次GET请求,以检查是否有新版本的镜像。该功能可以让你及时获取新功能和相关安全隐患的修复的推送提醒。你也可以选择将该环境变量设置为`false`来禁用该功能。注意该功能启用下,依然需要手动更新镜像来完成升级。
### 支持的 Docker volume 属性
* `/data` 用来放置所有下载的文件的目录
* `/app/conf/key` 用户来放置 Aria2 SSL `certificate`证书和 `key` 文件. `注意`: 证书的名字必须是 `aria2.crt` Key 文件的名字必须是 `aria2.key`
* `/app/conf` 该目录下可以放置你的自定义`aria2.conf`配置文件,`aria2.session`,且必须包含这两个文件。第一次使用`aria2.session`时,创建一个空文件即可,该文件会包含aria2当前的下载列表,这样即使容器被销毁也不用担心文件列表丢失了。你也可以直接拷贝当前项目下`conf`目录中的两个文件并使用。如需映射rclone.conf到容器内,请将其就放置于该目录下。因此配置文件目录支持的所有配置文件为:
* aria2.conf
* aria2.session
* rclone.conf
* `/app/filebrowser.db` File Browser 的内嵌数据库,升级Docker 镜像也不用担心之前的设置丢失。请确保在宿主机先创建一个空文件再使用。
## 自动 SSL
请在绑定域名前,设置`DNS`的一条`A`记录,将运行docker的主机IP绑定到该域名。然后你仅仅需要在运行时添加`e`设置即可。
```bash
docker run -d --name aria2-ui -p 80:80 -p 443:443 -e DOMAIN=https://toozhao.com wahyd4/aria2-ui
```
## 自行构建镜像
```
docker build -t aria2-ui .
```
## Docker Hub
<https://hub.docker.com/r/wahyd4/aria2-ui/>
## 在 Kubernetes 里面运行 (我的最爱)
首先,在Kubernetes 里面运行本Docker 镜像比在Docker 里面更加复杂,需要更多的相关知识,但是也更加有意思,给你带来更多的折腾之后的满足。
你可以使用`minikube`Docker 桌面应用自带Kubernetes 或者 使用`kubeadm`来安装Kubernetes,然后你需要根据自己的需要修改 [k8s-manifest.yaml](k8s-manifest.yaml) 来满足你的需要的需求。比如:
* NFS PV provider(使用NAS 作为容器存储)
* Ingress 访问, Oauth 登录灯其他访问控制
* VPN (让数据访问更加安全)
* 其他的一些 Sidecars
## 使用 Docker compose 来运行
请参考 <https://github.com/wahyd4/aria2-ariang-x-docker-compose>
## 常见问题
1. 当你以非其他`80` 端口或以启用了HTTPS`443`端口运行程序时,会出现`Aria2 状态 未连接`的错误,这是因为在最新版本里面,我们去掉aria2的独立6800端口,转而使用和网站同一个端口。你可以设置`ARIA2_EXTERNAL_PORT`后重建你的容器。
2. 下载的BT或者磁力完全没有速度怎么办? 建议先下载一个热门的BT种子文件,而不是磁力链接。这样可以帮助缓存DHT文件,渐渐地,速度就会起来了。比如试试下载树莓派操作系统的BT种子?[前往下载](https://www.raspberrypi.org/downloads/raspbian/)
3. 如果你遇到了和 `setcap` 相关的错误,很大程度说明你说运行的Linux不支持使用非`root`用户来运行本Docker 镜像,因此请显式地设置环境变量`PUID` `PGID``0` ,也就是使用`root` 来运行
4. 如何配置`Rclone`? 如果你想连接`Google Drive` 类似的云存储平台,很遗憾你不能通过浏览器配置,因为网页版本`Oauth` 方式在这里是用不了的,你只能通过命令行的形式来配置,即`rclone config`. 详请请参考官网 [Configuring rclone on a remote / headless machine](https://rclone.org/remote_setup) 以及详细步骤请参考 [issue](https://github.com/wahyd4/aria2-ariang-docker/issues/118)
-70
View File
@@ -1,70 +0,0 @@
Aria2 + AriaNg
English | [简体中文](https://github.com/wahyd4/aria2-ariang-docker/blob/master/README.md)
[![](https://images.microbadger.com/badges/image/wahyd4/aria2-ui.svg)](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
<!-- TOC -->
- [Features](#features)
- [How to run](#how-to-run)
- [Simple Usage](#simple-usage)
- [Full Usage](#full-usage)
- [Supported Environment Variables](#supported-environment-variables)
- [Supported Volumes](#supported-volumes)
- [Docker Hub](#docker-hub)
- [Usage it in Docker compose](#usage-it-in-docker-compose)
<!-- /TOC -->
Aria2
![Screenshot](https://github.com/wahyd4/aria2-ariang-x-docker-compose/raw/master/images/ariang.png)
File Manager
![Filemanager](https://github.com/wahyd4/aria2-ariang-docker/raw/master/filemanager.png)
## Features
* Aria2 (SSL support)
* AriaNg
* Auto HTTPS Let's Encrypt
* Basic Auth
* File indexing and video playing ([File Manager](https://henriquedias.com/filemanager/))
## How to run
### Simple Usage
```shell
docker run -d --name ariang -p 80:80 -p 6800:6800 wahyd4/aria2-ui
```
* Aria2: <http://yourip>
* FileManger: <http://yourip/files>
* Please use admin/admin as username and password to login
### Full Usage
```shell
docker run -d --name ariang -p 80:80 -p 6800:6800 -p 443:443 -e ENABLE_AUTH=true -e RPC_SECRET=Hello -e DOMAIN=example.com -e ARIA2_USER=user -e ARIA2_PWD=pwd -v /yourdata:/data -v /yoursslkeys/:/root/conf/key -v /<to your aria2.conf>:/root/conf/aria2.conf wahyd4/aria2-ui
```
### Supported Environment Variables
* ENABLE_AUTH enable Basic auth
* ARIA2_USER Basic Auth username
* ARIA2_PWD Basic Auth
* RPC_SECRET The Aria2 RPC secret token
* DOMAIN The domain you'd like to bind
### Supported Volumes
* `/data` The folder of all Aria2 downloaded files.
* `/root/conf/key` The folder which stored Aria2 SSL `certificate` and `key` file. `Notice`: The certificate file should be named `aria2.crt` and the key file should be named `aria2.key`
* `/root/conf/aria2.conf` The Aria2 configuration file.
## Docker Hub
<https://hub.docker.com/r/wahyd4/aria2-ui/>
## Usage it in Docker compose
Please refer <https://github.com/wahyd4/aria2-ariang-x-docker-compose>
+180 -44
View File
@@ -1,72 +1,208 @@
Aria2 + AriaNg
Aria2 + AriaNg + Filebrowser
[English](https://github.com/wahyd4/aria2-ariang-docker/blob/master/README.EN.md) | 简体中文
English | [简体中文](https://github.com/wahyd4/aria2-ariang-docker/blob/master/README.CN.md)
[![](https://images.microbadger.com/badges/image/wahyd4/aria2-ui.svg)](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
[![Docker Pulls](https://img.shields.io/docker/pulls/wahyd4/aria2-ui.svg)](https://hub.docker.com/r/wahyd4/aria2-ui/)
[![Github Build](https://github.com/wahyd4/aria2-ariang-docker/actions/workflows/dockerimage.yml/badge.svg)](https://github.com/wahyd4/aria2-ariang-docker/actions)
本镜像包含 Aria2、AriaNg 和File Manager,主要方便那些用户期望只运行一个镜像就能实现图形化下载文件和在线播放文件。(类似离线下载的功能),只使用一个 Docker 镜像也方便用户在群晖NAS 中运行本程序。
[![Page Views Count](https://badges.toozhao.com/svg/aria2-ariang-docker)](https://badges.toozhao.com/stats/aria2-ariang-docker "Page Views Count")
<!-- TOC -->
- [功能特性](#功能特性)
- [安装于运行](#安装于运行)
- [快速运行](#快速运行)
- [开启所有功能](#开启所有功能)
- [支持的 Docker 环境变量](#支持的-docker-环境变量)
- [支持的 Docker volume 属性](#支持的-docker-volume-属性)
**If you like this project, please consider [sponsoring me](https://github.com/sponsors/wahyd4) / 如果喜欢本项目,请考虑打赏,谢谢!**
<img src="https://raw.githubusercontent.com/wahyd4/work-in-australia/766592ac6318027d7b3c334d8c50ca80818eeff8/wepay.jpg" alt="buy me a drink" width="120"/>
- [Features](#features)
- [Recommended versions](#recommended-versions)
- [How to run](#how-to-run)
- [Quick run](#quick-run)
- [Full features run](#full-features-run)
- [Run with docker-compose](#run-with-docker-compose)
- [Supported Environment Variables](#supported-environment-variables)
- [Supported Volumes](#supported-volumes)
- [Auto HTTPS enabling](#auto-https-enabling)
- [Download Automation 🤖](#download-automation-)
- [Download file through iPhone/Mac Shortcuts app.](#download-file-through-iphonemac-shortcuts-app)
- [Download file through cURL](#download-file-through-curl)
- [Build the image by yourself](#build-the-image-by-yourself)
- [Docker Hub](#docker-hub)
- [使用 Docker compose 来运行](#使用-docker-compose-来运行)
- [Running it on Kubernetes (My favorite)](#running-it-on-kubernetes-my-favorite)
- [Running it with Docker compose](#running-it-with-docker-compose)
- [FAQ](#faq)
<!-- /TOC -->
Aria2
![Screenshot](https://github.com/wahyd4/aria2-ariang-x-docker-compose/raw/master/images/ariang.png)
One Docker image for file downloading, managing, sharing, as well as video playing and evening cloud storage synchronization.
File Manager
![Filemanager](https://github.com/wahyd4/aria2-ariang-docker/raw/master/filemanager.png)
## 功能特性
Furthermore, it's pretty small and ARM CPU compatible which means you can also run it on Raspberry Pi🍓.
* Aria2 (SSL 支持)
* AriaNg 通过 UI 来操作,下载文件
* 自动 HTTPS Let's Encrypt
* Basic Auth 用户认证
* 文件管理和视频播放 ([File Manager](https://henriquedias.com/filemanager/),注意默认情况下,只能访问和管理 `/data` 目录下的文件)
Last but not least, Auto HTTPS can't be more easy!
## 安装于运行
AriaNG
![Screenshot](https://github.com/wahyd4/aria2-ariang-x-docker-compose/raw/master/images/ariang.jpg)
### 快速运行
File Browser
![File Browser](https://github.com/wahyd4/aria2-ariang-docker/raw/master/filemanager.png)
## Features
* [Aria2 (SSL support)](https://aria2.github.io)
* [AriaNg](https://github.com/mayswind/AriaNg)
* [Rclone](https://rclone.org/)
* [File Browser](https://filebrowser.org/): Files mangement and videos playing
* Auto HTTPS Let's Encrypt
* Bind non root user into container, so non root user can also manage downloaded files.
* Basic Auth
* Support ARM CPUs as well, all supported CPU platforms can be found [here](https://cloud.docker.com/repository/docker/wahyd4/aria2-ui/tags)
* Cloud Storage platforms synchronization
* Auto uploading files to 3rd party Cloud storage providers via Rclone after files been downloaded.
## Recommended versions
* wahyd4/aria2-ui:latest
> Docker will pick the the proper ARCH for you. e.g. arm64v8 or x86_64
## How to run
### Quick run
```shell
docker run -d --name ariang -p 80:80 -p 6800:6800 wahyd4/aria2-ui
docker run -d --name aria2-ui -p 80:80 wahyd4/aria2-ui
```
* Aria2: <http://yourip>
* FileManger: <http://yourip/files>
* 请使用 admin/admin 进行登录
### 开启所有功能
```shell
docker run -d --name ariang -p 80:80 -p 6800:6800 -p 443:443 -e ENABLE_AUTH=true -e RPC_SECRET=Hello -e DOMAIN=example.com -e ARIA2_USER=user -e ARIA2_PWD=pwd -v /yourdata:/data -v /yoursslkeys/:/root/conf/key -v -v <to your aria2.conf>:/root/conf/aria2.conf wahyd4/aria2-ui
* Rclone: <http://yourip/rclone>
* Please use `admin`/`admin` as username and password to login `Filebrowser` for the first time. And use `user`/`password` to login `Rclone` if you don't update `ARIA2_USER` and `ARIA2_PWD`
### Full features run
```bash
docker run -d --name ariang \
-p 80:80 \
-p 443:443 \
-e PUID=1000 \
-e PGID=1000 \
-e ENABLE_AUTH=true \
-e RPC_SECRET=Hello \
-e DOMAIN=https://example.com \
-e ARIA2_SSL=false \
-e ARIA2_USER=user \
-e ARIA2_PWD=password \
-e ARIA2_EXTERNAL_PORT=443 \
-e CADDY_LOG_LEVEL=ERROR \
-v /yourdata:/data \
-v /app/.cache:/app/.cache \
-v /app/a.db:/app/filebrowser.db \
-v /to_yoursslkeys/:/app/conf/key \
-v <conf files folder>:/app/conf \
wahyd4/aria2-ui
```
### Run with docker-compose
If you would like to get rid of those annoying command line commands, then just put the following sample content into `docker-compose.yaml`
```yaml
version: "3.5"
services:
aria2-ui:
restart: unless-stopped
image: wahyd4/aria2-ui:latest
environment:
- ENABLE_AUTH=true
- ARIA2_USER=hello
- ARIA2_PWD=world
- DOMAIN=http://toozhao.com
ports:
- "80:80"
volumes:
- ./data:/data
```
Then simply run `docker-compose up -d`, that's it!
### Supported Environment Variables
| ENV | Description|
|:---|:---|
| `ENABLE_AUTH` | Whether to enable Basic auth |
| `ENABLE_RCLONE` | Whether to disable Rclone, if you running this container offline or do not have stable connection to Github, please set to `false`
| `ARIA2_USER` | Basic Auth username, Rclone GUI uses it as well. |
| `ARIA2_PWD` | Basic Auth password, Rclone GUI uses it as well. |
| `ARIA2_EXTERNAL_PORT` | The Aria2 port which exposed to public to access to |
| `PUID` | Bind Linux UID into container which means you can use non `root` user to manage downloaded files, default UID is `1000` |
| `PGID` | Bind Linux GID into container, default GID is 1000 |
| `RPC_SECRET` | The Aria2 RPC secret token |
| `DOMAIN` | The domain you'd like to bind, when domain is a `https://` thing, then auto TLS feature will be enabled |
| `RCLONE_CONFIG_BASE64` | Inject and config Rclone through `base64` string, which is the only way to use Rclone on Heroku. Please use `cat /app/conf/rclone.conf \| base64` or any base64 online tools such as [this](https://www.base64encode.org/) to encode your `rclone.conf` as bse64 string. Note, you need to set `ENABLE_RCLONE` to true as well. |
| `ENABLE_APP_CHECKER` | By default it's set to `true` to check if any new docker image version release on daily basis, which can help you get notification when new features released as well as some security vulnerabilities get fixed. You can set it to `false` to disable this feature. Note: you still need to manually pull the new image version and re run the docker container to complete upgrading. |
| `CADDY_LOG_LEVEL` | For specifying the log level of Caddy, set it to `WARN` or`ERROR` to reduce logs. Default: `INFO` |
| `RCLONE_AUTO_UPLOAD_PROVIDER` | The Rclone remote storage provider name, which can be found under `Rclone -> Configs`, default `""`, which means auto upload is disabled. When the value is not empty, then the files will be attempted to be uploaded.|
| `RCLONE_AUTO_UPLOAD_REMOTE_PATH` | The file folder in remote cloud storage provider, default `/downloads`|
| `RCLONE_AUTO_UPLOAD_FILE_MIN_SIZE` | Set the minimum file size of auto uploader, files smaller than it won't be uploaded, default `1K` |
| `RCLONE_AUTO_UPLOAD_FILE_MAX_SIZE` | Set the limit of the Max file can be uploaded to 3rd party storage provider, default `100G`. |
### Supported Volumes
| Mountable folder | Description|
|:---|:---|
| `/data` | The folder contains all the files you download. |
| `/app/conf/key` | The folder which stores Aria2 SSL `certificate` and `key` |file. `Notice`: The certificate file should be named `aria2.crt` and the key file should be named `aria2.key` |
| `/app/conf` | The Aria2 configuration and file session folder. Make sure you have `aria2.conf` and `aria2.session` file. For the first time `aria2.session` just need to be a empty file can be appended. You can also user the templates for these two file in the `conf` folder of this project. Please put your `rclone.conf` in this folder as well if you'd mount it to Rclone. So all the config files supported in this folder are: `aria2.conf`, `aria2.session`, `rclone.conf`. 🚨Warning🚨: if you don't mount `/app/conf`, whenever the container restarts, you'll lose your downloading progress. |
|`/app/conf/aria2.conf` | See description above👆🏼 |
|`/app/conf/aria2.session` | See description above👆🏼 |
|`/app/conf/rclone.conf` | See description above👆🏼 |
| `/app/conf/auto-upload.sh` | The bash script to be used for uploading downloaded files to remote storage provider via Rclone, mount your own script if you want to have custom logic. |
| `/app/filebrowser.db` | File Browser settings database, make sure you make a empty file first on your host. |
| `/app/.cache` | The folder for storing rclone caches and [aria2 DHT files](https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-dht-file-path) |
## Auto HTTPS enabling
Make sure you have added proper `A` record point to the host you running to your domain `DNS` record list, then just add `e` option to bind the `https` domain when you run the image
```bash
docker run -d --name aria2-ui -p 80:80 -p 443:443 -e DOMAIN=https://toozhao.com wahyd4/aria2-ui
```
## Download Automation 🤖
### Download file through iPhone/Mac Shortcuts app.
First [Download Shortcut](https://www.icloud.com/shortcuts/7483b8cec7484c0f98b72882d0f1e3e2), then follow the promots to setup aria2-ui URL and RPC_SECRET. Then you are all ready to go, just to run the shortcut and provide the file URL which you want to download or the magnet/torrent file URL.
### Download file through cURL
```bash
curl http://<ip>:<port>/jsonrpc -d "{\"jsonrcp\":\"2.0\",\"id\":\"someID\",\"method\":\"aria2.addUri\",\"params\":[\"token:someToken\",[\"http://some_file_url\"],{\"dir\":\"/data/downloads\"}]}"
```
### 支持的 Docker 环境变量
* ENABLE_AUTH 启用 Basic auth 用户认证
* ARIA2_USER Basic Auth 用户认证用户名
* ARIA2_PWD Basic Auth 密码
* RPC_SECRET Aria2 RPC 加密 token
* DOMAIN 绑定的域名
### 支持的 Docker volume 属性
* `/data` 用来放置所有下载的文件的目录
* `/root/conf/key` 用户来放置 Aria2 SSL `certificate`证书和 `key` 文件. `注意`: 证书的名字必须是 `aria2.crt` Key 文件的名字必须是 `aria2.key`
* `/root/conf/aria2.conf` 为 aria2 的配置文件,你可以映射自己的配置文件。
## Build the image by yourself
```bash
docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 -t aria2-ui .
```
## Docker Hub
<https://hub.docker.com/r/wahyd4/aria2-ui/>
## 使用 Docker compose 来运行
## Running it on Kubernetes (My favorite)
请参考 <https://github.com/wahyd4/aria2-ariang-x-docker-compose>
First of all, I have to say running this docker image on Kubernetes is more challenging and requires more knowledges than running it in raw Docker, but which is more powerful.
I couldn't tell you how to run it in Kubernetes step by step, but once you have a running Kubernetes cluster(You can install Kubernetes via `minikube`, `Docker desktop app`, `kubeadm` and many other tools.), then you can modify the [k8s-manifest.yaml](k8s-manifest.yaml) to satisfy all your requirements. Such as:
* NFS PV provider(Use your NAS as storage)
* Ingress access, Oauth login, more access controls via Nginx etc.
* VPN tunnel (Secure your traffic)
* Sidecars and so on.
## Running it with Docker compose
Please refer <https://github.com/wahyd4/aria2-ariang-x-docker-compose>
## FAQ
1. When you running the docker image with non `80` port or you have HTTPS enabled, you will meet the error says `Aria2 Status Disconnected`, then you will need to set `ARIA2_EXTERNAL_PORT` and recreate your container.
2. If there is no speed at all when you downloading a BitTorrent file, please try to use a popular torrent file first to help the application to cache `DHT` file. Then the speed should get fast and fast, as well as downloading other links.
3. If you see any errors related to `setcap` which probably means the Linux you are running doesn't support running this application with `non-root` user. So please specify the `PUID` and `PGID` to `0` explicitly to use `root` user to run it.
4. How can I get `Rclone` authenticated? Due to Rclone is running in this docker image only as a component rather than an application, you can only interact with it via `/rclone` endpoint, and no other ports. So the web browser authentication mechanism doesn't work here. Please configure Rclone through command line within the container. You can follow the official doc [Configuring rclone on a remote / headless machine](https://rclone.org/remote_setup) or this [issue](https://github.com/wahyd4/aria2-ariang-docker/issues/118)
+37
View File
@@ -0,0 +1,37 @@
{$DOMAIN}
log {
level {env.CADDY_LOG_LEVEL}
output stderr
}
basicauth / {
ARIA2_USER ARIA2_PWD_ENCRYPT
}
redir /ui / 301
redir /ui/ / 301
redir /rclone /rclone/ 301
redir /files /files/ 301
reverse_proxy /rpc 127.0.0.1:6800
reverse_proxy /jsonrpc 127.0.0.1:6800
route /rclone/* {
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
}
route /files/* {
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
}
route /ping {
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
file_server
encode gzip
+45
View File
@@ -0,0 +1,45 @@
{
"name": "wahyd4/aria2-ariang-docker demo",
"description": "A demo of Aria2 + AriaNg + Filebrowser + Rclone",
"repository": "https://github.com/wahyd4/aria2-ariang-docker",
"keywords": ["docker", "aria2", "rclone", "fllebrowser", "ariang"],
"stack": "container",
"success_url": "/",
"env": {
"ENABLE_AUTH": {
"description": "This value must be heroku when running in Heroku",
"value": "heroku",
"required": false
},
"RCLONE_CONFIG_BASE64": {
"description": "This value is the base64 string of your preconfigured /app/conf/rclone.conf content",
"value": "",
"required": false
},
"ARIA2_USER": {
"description": "Username to login to AriaNg",
"value": "user",
"required": false
},
"ARIA2_PWD": {
"description": "Password to login to AriaNg",
"value": "password",
"required": false
},
"ARIA2_EXTERNAL_PORT": {
"description": "External port for apps, it should be 443 when running in Heroku",
"value": "443",
"required": false
},
"PUID": {
"description": "The Linux user's ID that to run the app",
"value": "0",
"required": false
},
"PGID": {
"description": "The Linux group's ID that to run the app",
"value": "0",
"required": false
}
}
}
Executable
+26
View File
@@ -0,0 +1,26 @@
#! /bin/bash -eu
sed -i 's/6800/'"${ARIA2_EXTERNAL_PORT}"'/g' /usr/local/www/aria2/js/aria-ng*.js
RPC_SECRET_BASE64=$(echo -n ${RPC_SECRET} | base64)
sed -i 's/secret:\"\"/secret:\"'"${RPC_SECRET_BASE64}"'\"/g' /usr/local/www/aria2/js/aria-ng*.js
if [[ "${ARIA2_SSL}" = "true" ]]; then
echo "[INFO] Start aria2 with secure config and rpc-secret"
/usr/bin/aria2c --conf-path="/app/conf/aria2.conf" \
--enable-rpc --rpc-listen-all \
--rpc-certificate=/app/conf/key/aria2.crt \
--rpc-private-key=/app/conf/key/aria2.key \
--rpc-secret="${RPC_SECRET}" --rpc-secure
elif [[ "${ARIA2_SSL}" = "false" ]] && [[ "${RPC_SECRET}" != "" ]]; then
echo "[INFO] Start aria2 with rpc-secret"
/usr/bin/aria2c --conf-path="/app/conf/aria2.conf" \
--enable-rpc \
--rpc-listen-all \
--rpc-secret="${RPC_SECRET}"
else
echo "[INFO] Start aria2 with standard mode"
/usr/bin/aria2c --conf-path="/app/conf/aria2.conf" --enable-rpc --rpc-listen-all
fi
Executable
+31
View File
@@ -0,0 +1,31 @@
#! /bin/bash -eu
echo "[INFO] Run aria2c and ariaNG"
echo "[INFO] Generate basic auth password for caddy"
ARIA2_PWD_ENCRYPT=$(caddy hash-password --plaintext ${ARIA2_PWD})
case $ENABLE_AUTH in
true)
echo "[INFO] Use Basic Auth config file "
export CADDY_FILE=/usr/local/caddy/SecureCaddyfile
sed -i 's/ARIA2_USER/'"${ARIA2_USER}"'/g' ${CADDY_FILE}
sed -i 's/ARIA2_PWD_ENCRYPT/'"${ARIA2_PWD_ENCRYPT}"'/g' ${CADDY_FILE}
;;
heroku)
echo "[INFO] Run Caddy with Heroku mode"
export CADDY_FILE=/usr/local/caddy/HerokuCaddyfile
sed -i 's/ARIA2_USER/'"${ARIA2_USER}"'/g' ${CADDY_FILE}
sed -i 's/ARIA2_PWD_ENCRYPT/'"${ARIA2_PWD_ENCRYPT}"'/g' ${CADDY_FILE}
sed -i 's/PORT/'"${PORT}"'/g' ${CADDY_FILE}
;;
*)
echo "[INFO] Use caddy without Basic Auth"
export CADDY_FILE=/usr/local/caddy/Caddyfile
;;
esac
/usr/local/bin/caddy run --config ${CADDY_FILE} --adapter=caddyfile
-15
View File
@@ -1,15 +0,0 @@
{$DOMAIN} {
root /usr/local/www/aria2
timeouts none
gzip
log stdout
errors stdout
}
{$DOMAIN}/files {
filemanager / /data
}
-43
View File
@@ -1,43 +0,0 @@
FROM alpine:edge
LABEL AUTHOR=Junv<wahyd4@gmail.com>
WORKDIR /root
ENV RPC_SECRET=Hello
ENV ENABLE_AUTH=false
ENV DOMAIN=0.0.0.0:80
ENV ARIA2_USER=user
ENV ARIA2_PWD=password
# For build image in local quickly in China
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk update && apk add wget bash curl openrc gnupg screen aria2 tar --no-cache
RUN curl https://getcaddy.com | bash -s personal http.filemanager
ADD conf /root/conf
COPY aria2c.sh /root
COPY Caddyfile SecureCaddyfile /usr/local/caddy/
RUN mkdir -p /usr/local/www && mkdir -p /usr/local/www/aria2
#AriaNg
RUN mkdir /usr/local/www/aria2/Download && cd /usr/local/www/aria2 \
&& chmod +rw /root/conf/aria2.session \
&& wget -N --no-check-certificate https://github.com/mayswind/AriaNg/releases/download/0.4.0/aria-ng-0.4.0.zip && unzip aria-ng-0.4.0.zip && rm -rf aria-ng-0.4.0.zip \
&& chmod -R 755 /usr/local/www/aria2 \
&& chmod +x /root/aria2c.sh
#The folder to store ssl keys
VOLUME /root/conf/key
# User downloaded files
VOLUME /data
EXPOSE 6800 80 443
CMD ["/bin/sh", "/root/aria2c.sh" ]
-19
View File
@@ -1,19 +0,0 @@
{$DOMAIN} {
root /usr/local/www/aria2
timeouts none
gzip
log stdout
errors stdout
basicauth / {$ARIA2_USER} {$ARIA2_PWD}
}
{$DOMAIN}/files {
gzip
log stdout
errors stdout
filemanager / /data
basicauth / {$ARIA2_USER} {$ARIA2_PWD}
}
-29
View File
@@ -1,29 +0,0 @@
#! /bin/bash -eu
echo "Run aria2c and ariaNG"
if [ "$ENABLE_AUTH" = "true" ]; then
echo "Using Basic Auth config file "
CADDY_FILE=/usr/local/caddy/SecureCaddyfile
else
echo "Using caddy without Basic Auth"
CADDY_FILE=/usr/local/caddy/Caddyfile
fi
if [ "$SSL" = "true" ]; then
echo "Start aria2 with secure config"
/usr/bin/aria2c --conf-path="/root/conf/aria2.conf" -D \
--enable-rpc --rpc-listen-all \
--rpc-certificate=/root/conf/key/aria2.crt \
--rpc-private-key=/root/conf/key/aria2.key \
--rpc-secret="$RPC_SECRET" --rpc-secure \
&& caddy -quic --conf ${CADDY_FILE}
else
echo "Start aria2 with standard mode"
/usr/bin/aria2c --conf-path="/root/conf/aria2.conf" -D \
--enable-rpc --rpc-listen-all \
&& caddy -quic --conf ${CADDY_FILE}
fi
-66
View File
@@ -1,66 +0,0 @@
#用户名
#rpc-user=user
#密码
#rpc-passwd=passwd
#上面的认证方式不建议使用,建议使用下面的token方式
#设置加密的密钥
#rpc-secret=token
#允许rpc
enable-rpc=true
#允许所有来源, web界面跨域权限需要
rpc-allow-origin-all=true
#允许外部访问,false的话只监听本地端口
rpc-listen-all=true
#RPC端口, 仅当默认端口被占用时修改
#rpc-listen-port=6800
#最大同时下载数(任务数), 路由建议值: 3
max-concurrent-downloads=5
#断点续传
continue=true
#同服务器连接数
max-connection-per-server=5
#最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要
min-split-size=10M
#单文件最大线程数, 路由建议值: 5
split=10
#下载速度限制
max-overall-download-limit=0
#单文件速度限制
max-download-limit=0
#上传速度限制
max-overall-upload-limit=0
#单文件速度限制
max-upload-limit=0
#断开速度过慢的连接
#lowest-speed-limit=0
#验证用,需要1.16.1之后的release版本
#referer=*
#文件保存路径, 默认为当前启动位置
# dir=/user-files/superuser/
dir=/data
#文件缓存, 使用内置的文件缓存, 如果你不相信Linux内核文件缓存和磁盘内置缓存时使用, 需要1.16及以上版本
#disk-cache=0
#另一种Linux文件缓存方式, 使用前确保您使用的内核支持此选项, 需要1.15及以上版本(?)
#enable-mmap=true
#文件预分配, 能有效降低文件碎片, 提高磁盘性能. 缺点是预分配时间较长
#所需时间 none < falloc ? trunc « prealloc, falloc和trunc需要文件系统和内核支持
file-allocation=prealloc
# General Options
log=/var/log/aria2.log
#You can set either debug, info, notice, warn or error.
log-level=error
## 进度保存相关 ##
# 从会话文件中读取下载任务
input-file=/root/conf/aria2.session
# 在Aria2退出时保存`错误/未完成`的下载任务到会话文件
save-session=/root/conf/aria2.session
# 定时保存会话, 0为退出时才保存, 需1.16.1以上版本, 默认:0
save-session-interval=10
# BT trackers from https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt
bt-tracker=udp://tracker.skyts.net:6969/announce,udp://tracker.safe.moe:6969/announce,udp://tracker.piratepublic.com:1337/announce,udp://tracker.pirateparty.gr:6969/announce,udp://tracker.coppersurfer.tk:6969/announce,udp://tracker.leechers-paradise.org:6969/announce,udp://allesanddro.de:1337/announce,udp://9.rarbg.com:2710/announce,http://p4p.arenabg.com:1337/announce,udp://p4p.arenabg.com:1337/announce,udp://tracker.opentrackr.org:1337/announce,udp://tracker.internetwarriors.net:1337/announce,http://tracker.opentrackr.org:1337/announce,udp://public.popcorn-tracker.org:6969/announce,udp://tracker2.wasabii.com.tw:6969/announce,udp://tracker2.christianbro.pw:6969/announce,udp://tracker1.xku.tv:6969/announce,udp://tracker1.wasabii.com.tw:6969/announce,udp://tracker.zer0day.to:1337/announce,udp://peerfect.org:6969/announce
+5
View File
@@ -0,0 +1,5 @@
#! /bin/bash -eu
# For more details about how to use this feature, see: https://aria2.github.io/manual/en/html/aria2c.html#event-hook
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Aria2 hook triggered with parameters: GID [$1], Files Count: [$2], Files Path: [$3]"
+82
View File
@@ -0,0 +1,82 @@
#用户名
#rpc-user=user
#密码
#rpc-passwd=passwd
#上面的认证方式不建议使用,建议使用下面的token方式
#设置加密的密钥
#rpc-secret=token
#允许rpc
enable-rpc=true
#允许所有来源, web界面跨域权限需要
rpc-allow-origin-all=true
#允许外部访问,false的话只监听本地端口
rpc-listen-all=true
#RPC端口, 仅当默认端口被占用时修改
#rpc-listen-port=6800
#最大同时下载数(任务数), 路由建议值: 3
max-concurrent-downloads=5
#种子最小分享率
seed-ratio=100.0
#断点续传
continue=true
#同服务器连接数
max-connection-per-server=5
#最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要
min-split-size=10M
#单文件最大线程数, 路由建议值: 5
split=10
#下载速度限制
max-overall-download-limit=0
#单文件速度限制
max-download-limit=0
#上传速度限制
max-overall-upload-limit=0
#单文件速度限制
max-upload-limit=0
#断开速度过慢的连接
#lowest-speed-limit=0
#验证用,需要1.16.1之后的release版本
#referer=*
#文件保存路径, 默认为当前启动位置
# dir=/user-files/superuser/
dir=/data
#文件缓存, 使用内置的文件缓存, 如果你不相信Linux内核文件缓存和磁盘内置缓存时使用, 需要1.16及以上版本
#disk-cache=0
#另一种Linux文件缓存方式, 使用前确保您使用的内核支持此选项, 需要1.15及以上版本(?)
#enable-mmap=true
#文件预分配, 能有效降低文件碎片, 提高磁盘性能. 缺点是预分配时间较长
#所需时间 none < falloc ? trunc « prealloc, falloc和trunc需要文件系统和内核支持
file-allocation=prealloc
# disable IPV6 by default
disable-ipv6=true
# General Options
log=/var/log/aria2.log
#You can set either debug, info, notice, warn or error.
log-level=warn
## Related to save downloading progress ##
# 从会话文件中读取下载任务
input-file=/app/conf/aria2.session
# 在Aria2退出时保存`错误/未完成`的下载任务到会话文件
save-session=/app/conf/aria2.session
# 定时保存会话, 0为退出时才保存, 需1.16.1以上版本, 默认:0
save-session-interval=10
# BT trackers from https://trackerslist.com/best.txt updated on 2021-06-06
bt-tracker=http://1337.abcvg.info:80/announce,http://nyaa.tracker.wf:7777/announce,http://opentracker.xyz:80/announce,http://rt.tace.ru:80/announce,http://share.camoe.cn:8080/announce,http://t.nyaatracker.com:80/announce,http://torrentsmd.com:8080/announce,http://tr.cili001.com:8070/announce,http://tracker-cdn.moeking.me:2095/announce,http://tracker.anirena.com:80/announce,http://tracker.anirena.com:80/b16a15d9a238d1f59178d3614b857290/announce,http://tracker.anonwebz.xyz:8080/announce,http://tracker.bt4g.com:2095/announce,http://tracker.files.fm:6969/announce,http://tracker.gbitt.info:80/announce,http://tracker.ipv6tracker.ru:80/announce,http://tracker.noobsubs.net:80/announce,http://tracker.shittyurl.org:80/announce,http://tracker.tfile.co:80/announce,http://tracker.tfile.me:80/announce,http://tracker.trackerfix.com:80/announce,http://vps02.net.orel.ru:80/announce,https://1337.abcvg.info:443/announce,https://tr.torland.ga:443/announce,https://tracker.coalition.space:443/announce,https://tracker.gbitt.info:443/announce,https://tracker.lilithraws.cf:443/announce,https://tracker.nanoha.org:443/announce,https://tracker.nitrix.me:443/announce,https://tracker.parrotsec.org:443/announce,https://tracker.shittyurl.org:443/announce,https://tracker.tamersunion.org:443/announce,https://w.wwwww.wtf:443/announce,udp://6rt.tace.ru:80/announce,udp://9.rarbg.com:2830/announce,udp://9.rarbg.me:2710/announce,udp://9.rarbg.to:2710/announce,udp://app.icon256.com:8000/announce,udp://bubu.mapfactor.com:6969/announce,udp://discord.heihachi.pw:6969/announce,udp://exodus.desync.com:6969/announce,udp://explodie.org:6969/announce,udp://fe.dealclub.de:6969/announce,udp://inferno.demonoid.is:3391/announce,udp://ipv6.tracker.zerobytes.xyz:16661/announce,udp://mail.realliferpg.de:6969/announce,udp://movies.zsw.ca:6969/announce,udp://mts.tvbit.co:6969/announce,udp://open.demonii.com:1337/announce,udp://open.stealth.si:80/announce,udp://opentor.org:2710/announce,udp://opentracker.i2p.rocks:6969/announce,udp://p4p.arenabg.ch:1337/announce,udp://p4p.arenabg.com:1337/announce,udp://pow7.com:80/announce,udp://retracker.hotplug.ru:2710/announce,udp://retracker.lanta-net.ru:2710/announce,udp://retracker.netbynet.ru:2710/announce,udp://retracker01-msk-virt.corbina.net:80/announce,udp://t1.leech.ie:1337/announce,udp://t2.leech.ie:1337/announce,udp://thetracker.org:80/announce,udp://torrentclub.online:54123/announce,udp://tracker-de.ololosh.space:6969/announce,udp://tracker.0x.tf:6969/announce,udp://tracker.altrosky.nl:6969/announce,udp://tracker.army:6969/announce,udp://tracker.beeimg.com:6969/announce,udp://tracker.birkenwald.de:6969/announce,udp://tracker.blacksparrowmedia.net:6969/announce,udp://tracker.breizh.pm:6969/announce,udp://tracker.ccp.ovh:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://tracker.dler.com:6969/announce,udp://tracker.internetwarriors.net:1337/announce,udp://tracker.moeking.me:6969/announce,udp://tracker.nrx.me:6969/announce,udp://tracker.ololosh.space:6969/announce,udp://tracker.openbittorrent.com:6969/announce,udp://tracker.opentrackr.org:1337/announce,udp://tracker.shkinev.me:6969/announce,udp://tracker.theoks.net:6969/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.uw0.xyz:6969/announce,udp://tracker.zerobytes.xyz:1337/announce,udp://tracker0.ufibox.com:6969/announce,udp://tracker1.bt.moack.co.kr:80/announce,udp://tracker1.itzmx.com:8080/announce,udp://tracker2.dler.com:80/announce,udp://tracker2.dler.org:80/announce,udp://tracker2.itzmx.com:6961/announce,udp://tracker3.itzmx.com:6961/announce,udp://tracker4.itzmx.com:2710/announce,udp://u.wwwww.wtf:1/announce,udp://valakas.rollo.dnsabr.com:2710/announce,udp://vibe.community:6969/announce,udp://wassermann.online:6969/announce,udp://www.torrent.eu.org:451/announce
# The script to be run when download completes
#on-download-complete=/app/conf/aria2-sample-hook.sh
on-download-complete=/app/conf/auto-upload.sh
# The script to be run when download fails
on-download-error=/app/conf/aria2-sample-hook.sh
## DHT
dht-entry-point=dht.transmissionbt.com:6881
dht-entry-point=dht.vuze.com:6881
dht-entry-point=dht.libtorrent.org:25401
dht-listen-port=6881
+35
View File
@@ -0,0 +1,35 @@
#!/bin/bash -eu
if [[ ${RCLONE_AUTO_UPLOAD_PROVIDER} == "" ]]; then
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Auto upload isn't enabled"
exit 0
fi
file_count=$2
file_path=$3
downloadsFolder='/data'
if [ ${file_count} -eq 0 ]; then
echo "[WARN] $(date -u +'%Y-%m-%dT%H:%M:%SZ') No files detected. Original parameters: Files Count: ${file_count}, Files Path: ${file_path}"
exit 0
fi
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Start to upload files with: Files Count: ${file_count}, Files Path: ${file_path}"
folder=${file_path%/*}
if [ "${folder}" == "" ]; then # Not the actual file, or no files downloaded.
echo "[WARN] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Fail to find files ${file_path}"
exit 0
else
if [[ "$(ls -A "$folder/")" != "" ]] && [[ ${folder} != ${downloadsFolder} ]] ; then
# Copy files to remote
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Start uploading entire folder ${folder}"
rclone copy "${folder}" ${RCLONE_AUTO_UPLOAD_PROVIDER}:${RCLONE_AUTO_UPLOAD_REMOTE_PATH}${folder}/ --min-size ${RCLONE_AUTO_UPLOAD_FILE_MIN_SIZE} --max-size ${RCLONE_AUTO_UPLOAD_FILE_MAX_SIZE} -P
else
#Handle single file
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Start uploading file file_path"
rclone copy "${file_path}" ${RCLONE_AUTO_UPLOAD_PROVIDER}:${RCLONE_AUTO_UPLOAD_REMOTE_PATH}${folder}/ --min-size ${RCLONE_AUTO_UPLOAD_FILE_MIN_SIZE} --max-size ${RCLONE_AUTO_UPLOAD_FILE_MAX_SIZE} -P
fi
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Successfully uploaded ${file_count} files ${file_path}"
fi
+3
View File
@@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile
Executable
+26
View File
@@ -0,0 +1,26 @@
#! /bin/bash -eu
echo "[INFO] Update uid and gid to ${PUID}:${PGID}"
groupmod -o -g "$PGID" junv
usermod -o -u "$PUID" junv
mkdir -p /app/.caddy
mkdir -p /app/.cache
mkdir -p /app/.cache/aria2
chown -R junv:junv \
/app \
/app/.caddy \
/app/.cache \
/usr/local \
/var/log \
/data
chmod +x /app/caddy.sh \
/app/rclone.sh \
/app/aria2c.sh
echo "[INFO] Give caddy permissions to use low ports"
setcap cap_net_bind_service=+ep /usr/local/bin/caddy
"${@-sh}"
Executable
+70
View File
@@ -0,0 +1,70 @@
#! /bin/sh -eux
echo "[INFO] Set variables for $(arch)"
caddy_version=2.6.4
filebrowser_version=v2.23.0
rclone_version=v1.62.2
ariang_version=1.3.4
case "$(arch)" in
x86_64)
platform=linux-amd64
caddy_file=caddy_${caddy_version}_linux_amd64.tar.gz
rclone_file=rclone-${rclone_version}-${platform}.zip
;;
armv7l)
platform=linux-armv7
caddy_file=caddy_${caddy_version}_linux_armv7.tar.gz
rclone_file=rclone-${rclone_version}-linux-arm-v7.zip
;;
aarch64)
platform=linux-arm64
caddy_file=caddy_${caddy_version}_linux_arm64.tar.gz
rclone_file=rclone-${rclone_version}-${platform}.zip
;;
*)
echo "[ERROR] unsupported arch $(arch), exit now"
exit 1
;;
esac
filebrowser_file=${platform}-filebrowser.tar.gz
ariang_file=AriaNg-${ariang_version}.zip
adduser -D -u 1000 junv \
&& apk update \
&& apk add runit shadow wget bash curl openrc gnupg aria2 tar mailcap fuse vim libcap --no-cache \
&& wget -N https://github.com/caddyserver/caddy/releases/download/v${caddy_version}/${caddy_file} \
&& tar -zxf ${caddy_file} \
&& mv caddy /usr/local/bin/ \
&& rm -rf ${caddy_file} \
&& platform=linux-amd64 \
&& wget -N https://github.com/filebrowser/filebrowser/releases/download/${filebrowser_version}/${filebrowser_file} \
&& tar -zxf ${filebrowser_file} \
&& rm -rf ${filebrowser_file} \
&& rm LICENSE README.md CHANGELOG.md \
&& mkdir -p /usr/local/www \
&& mkdir -p /usr/local/www/aria2 \
&& rm -rf init /app/*.txt \
&& curl -O https://downloads.rclone.org/${rclone_version}/${rclone_file} \
&& unzip ${rclone_file} \
&& cd rclone-* \
&& cp rclone /usr/local/bin/ \
&& chown junv:junv /usr/local/bin/rclone \
&& chmod 755 /usr/local/bin/rclone \
&& rm /app/${rclone_file} \
&& rm -rf /app/rclone-* \
&& mkdir /usr/local/www/aria2/Download \
&& cd /usr/local/www/aria2 \
&& chmod +rw /app/conf/aria2.session \
&& wget -N --no-check-certificate https://github.com/mayswind/AriaNg/releases/download/${ariang_version}/${ariang_file} \
&& unzip ${ariang_file} \
&& rm -rf ${ariang_file} \
&& chmod -R 755 /usr/local/www/aria2 \
&& mkdir -p /data/cloud \
&& chown junv:junv /data/cloud \
&& ln -s /data/cloud /app
+161
View File
@@ -0,0 +1,161 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: files
spec:
revisionHistoryLimit: 2
selector:
matchLabels:
app: files
replicas: 1
template:
metadata:
labels:
app: files
spec:
volumes:
# - name: config
# persistentVolumeClaim:
# claimName: configs-pv
- name: downloads
persistentVolumeClaim:
claimName: downloads-pv
containers:
- name: files
image: wahyd4/aria2-ui:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: files-port
protocol: TCP
env:
## Update this to the final port you would use in the browser
- name: ARIA2_EXTERNAL_PORT
value: "443"
- name: PUID
value: "1000"
- name: PGID
value: "1000"
volumeMounts:
# - name: config
# subPath: aria
# mountPath: /app/conf
# - name: config
# subPath: files/filebrowser.db
# mountPath: /app/filebrowser.db
- name: downloads
mountPath: /data
resources:
requests:
cpu: 150m
memory: 256Mi
limits:
cpu: 400m
memory: 1024Mi
# An example of encrypting the traffic with some vpn providerm, please update the configurations accordingly
# - name: openvpn
# image: qmcgaw/gluetun:latest
# securityContext:
# runAsUser: 0
# privileged: true
# capabilities:
# add: ["NET_ADMIN"]
# imagePullPolicy: Always
# env:
# - name: OPENVPN_USER
# value: xxxx
# - name: OPENVPN_PASSWORD
# valueFrom:
# secretKeyRef:
# name: openvpn-password
# key: password
# - name: VPNSP
# value: "private internet access"
# - name: PIA_ENCRYPTION
# value: normal
# - name: REGION
# value: "AU Sydney"
# - name: TZ
# value: Australia/Melbourne
# resources:
# requests:
# cpu: 100m
# memory: 126Mi
# limits:
# cpu: 100m
# memory: 126Mi
---
apiVersion: v1
kind: Service
metadata:
name: files
labels:
app: files
spec:
type: ClusterIP
ports:
- port: 80
targetPort: files-port
protocol: TCP
name: web
selector:
app: files
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: downloads-pv
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/data"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "downloads-pv"
spec:
storageClassName: "manual"
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
# ---
# ingress example
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: files-ingress
# annotations:
# kubernetes.io/ingress.class: "nginx"
# kubernetes.io/tls-acme: "true"
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
# nginx.ingress.kubernetes.io/proxy-body-size: 10240m
# spec:
# tls:
# - hosts:
# - xx.example.com
# secretName: files-tls
# rules:
# - host: xx.example.com
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: files
# port:
# number: 80
+31
View File
@@ -0,0 +1,31 @@
#! /bin/bash -u
sleep 5
if [ "$ENABLE_APP_CHECKER" = "false" ]; then
echo "[INFO] Skip checking new version"
# Do nothing and just sleep 10 years
sleep 315360000
exit 0
fi
set -e
APP_VERSION=$(cat APP_VERSION)
set +e
while true; do
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Checking for new version against ${APP_VERSION} ..."
newer_version=$(curl --max-time 6 -s "https://badges.toozhao.com/val/aria2-ui-docker?version=${APP_VERSION}&arch=$(arch)")
if [[ -z ${newer_version} ]]; then
echo "[WARN] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Failed to check new version."
sleep 86400
continue
fi
if [[ ${newer_version} > ${APP_VERSION} ]]; then
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Found newer Docker image version wahyd4/aria2-ui:${newer_version}, please consider to upgrade by using docker pull command to have better user experience."
# check new version daily
sleep 86400
continue
fi
echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Congrats, you are using the latest version docker image"
sleep 86400
done
Executable
+20
View File
@@ -0,0 +1,20 @@
#! /bin/bash -eu
if [ "$RCLONE_CONFIG_BASE64" != "" ]; then
echo "[INFO] Config Rclone from RCLONE_CONFIG_BASE64 env"
echo $RCLONE_CONFIG_BASE64 | base64 -d > /app/conf/rclone.conf
echo "[INFO] Config Rclone from RCLONE_CONFIG_BASE64 completed"
fi
if [ "$ENABLE_RCLONE" = "true" ]; then
echo "[INFO] Start Rclone, please make sure you can connect to Github website. if not, please set docker env ENABLE_RCLONE=false"
rclone rcd --rc-web-gui \
--rc-web-gui-no-open-browser \
--rc-addr :5572 \
--rc-user $ARIA2_USER \
--rc-pass $ARIA2_PWD \
--cache-dir /app/.cache
else
echo "[INFO] Skip starting Rclone as it has been disabled"
sleep 3650d
fi
Executable
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash -eu
export APP_VERSION=$(cat /app/APP_VERSION)
if [ "$PGID" != "0" ]; then
$(dirname $0)/init.sh chpst -u junv ./forego start
else
./forego start
fi