wahyd4 / aria2-ariang-docker Goto Github PK
View Code? Open in Web Editor NEWThe Docker image for Aria2 + AriaNg + File Browser + Rclone
License: Apache License 2.0
The Docker image for Aria2 + AriaNg + File Browser + Rclone
License: Apache License 2.0
Aria2: http://yourip/ui/
如果不加最后的“/”
http://yourip/ui
这样访问,会丢失页面样式
是不是可以访问http://yourip/ui的时候 自动重定向一下
Use smb already.
Function request:
can set aria2 rpc url by The environment variables, waiting for AriaNg
finish this issue mayswind/AriaNg#409
当我在在 索引文件下载完毕后,再选择部分文件进行下载,如果单独选中几个文件进行下载,则所有文件一并下载,删除其中某些文件,则任务整体删除,是尚未支持还是 Bug ?
如题,日志都正常。file manager可以正常访问
请问此为何故?
Visit filebrowser/filebrowser#723 for more information
Should aria2 be installed on the host? I faced issues while downloading files. Then, I just installed aria2 on the host and recreated the container and all went good.
Which make this repo become:
aria2 + filemanager + plex
download + file management + play and cast
Hi Junv,
I want to deploy this app on my RPi but I do not need the file browser. Any way to disable that?
Or should I build a custom docker image?
And can I use apache or nginx instead of Caddy?
环境:群晖DS918+ Docker
通过ariang内进行的下载设置,如bittorrent的上传速率及做种时间。在docker重启容器之后 ,该类会复位。尝试了保存会话功能,但是看起来那并没有用。
求教如何保存设置,谢谢!
系统环境: Ubuntu 18.04.1 LTS
安装了最新的社区版的 Docker CE
启动命令:
docker run -d --name ariang -p 80:80 -p 6800:6800 -p 443:443 -e ENABLE_AUTH=true -e RPC_SECRET=Hello -e DOMAIN=我的域名 -e ARIA2_USER=user -e ARIA2_PWD=pwd -v /home/fejich:/data wahyd4/aria2-ui
症状为:
访问我的域名自动以 HTTPS 方式打开了 AriaNg 前端
但是无法连接到 Aria2 后端
后续测试了不启用 HTTPS ,能正常工作。
要正常使用 HTTPS 需要手动指定 SSL 证书吗?
( -v /yoursslkeys/:/root/conf/key )
能否做到自动化启用 Let's Encrypt 生成的证书?
Junv I don't know if this is a relevant question: Is it possible to download files from google drive?
I have seen some scripts output a URL to download using wget. Will you be able to integrate those scripts into this app?
您好!
请教个问题,我用群晖Docker搭建您的aria2,可正常使用。但是无法使用自己的.conf配置文件。也就是从docker内将配置文件/root/conf/aria2.conf映射到我指定的文件,AriaNg就无法连接(网页设置输入密码也无法连接),请问大神有解决办法吗?
I deployed this docker image using the arm64 tag on my raspberry pi 3B, but I am getting format exec error.
Describe the bug
Thanks for your efforts to build this handy tool. But in my case, Aria2NG cannot connect to aria2 by JSONRPC properly when I publish this service in other port(not 80).
To Reproduce
Steps to reproduce the behavior:
docker ... -p "9092:80" ...
Expected behavior
Is there any way to edit the port for RPC address? I have tried to edit Dockerfile and replaced sed -i "s/6800/80/g" /usr/local/www/aria2/js/aria-ng*.js
with sed -i "s/6800/${RPC_LISTEN_PORT}/g" /usr/local/www/aria2/js/aria-ng*.js
at line 46, but no luck. Any help will be appreciated!
最新的AriaNg已经支持了BT种子文件筛选下载,能更新下吗?
I'm using x86 DSM, with docker package from official package store.
The docker configuration is referred from here
tag: latest
repeated log output:
2019-10-10 05:52:49 | stdout | usage: setcap [-q] [-v] [-n <rootid>] (-r\|-\|<caps>) <filename> [ ... (-r\|-\|<capsN>) <filenameN> ]
-- | -- | --
2019-10-10 05:52:49 | stdout | Failed to set capabilities on file `/usr/local/bin/caddy' (Not supported)
2019-10-10 05:52:49 | stdout | **** give caddy permissions to use low ports ****
2019-10-10 05:52:49 | stdout | usermod: no changes
2019-10-10 05:52:49 | stdout | **** update uid and gid to 1000:1000 ****
2019-10-10 05:52:40 | stdout | Note <filename> must be a regular (non-symlink) file.
你好,我是业余玩家。在树莓派docker运行过几个程序。接触你的项目后,尝试直接ssh运行
docker run -d --name aria2-ui -p 80:80 wahyd4/aria2-ui
发现容器会自动停止,日志看不懂,请教如何解决……树莓派挂载主路由下的
**** update uid and gid to 1000:1000 ****
usermod: no changes
chown: /usr/local/bin/caddy: No data available
**** update uid and gid to 1000:1000 ****
usermod: no changes
**** give caddy permissions to use low ports ****
forego | starting filebrowser.1 on port 5000
forego | starting caddy.1 on port 5100
forego | starting aria2c.1 on port 5300
caddy.1 | Run aria2c and ariaNG
caddy.1 | Using caddy without Basic Auth
aria2c.1 | Start aria2 with standard mode
caddy.1 | Activating privacy features... done.
caddy.1 |
caddy.1 | Serving HTTP on port 80
caddy.1 | http://0.0.0.0
caddy.1 | http://0.0.0.0/ui
caddy.1 | http://0.0.0.0/ui/
caddy.1 |
aria2c.1 | /app/aria2c.sh: line 17: 23 Illegal instruction (core dumped) /usr/bin/aria2c --conf-path="/app/conf/aria2.conf" --enable-rpc --rpc-listen-all
forego | sending SIGTERM to filebrowser.1
forego | sending SIGTERM to caddy.1
在 AriaNg 上无论怎么更改 Aira2 的配置,只要一重启就会恢复。
也无法自动创建 dht.dat (即使是写在 /app/conf/aria2.conf 中)且写入数据。
通过 aria2c 下载是可以创建 dht.dat 且写入数据。
使用群晖 NAS 内建的 docker
wahyd4-aria2-ui:least
https://github.com/wahyd4/aria2-ariang-docker/blob/master/init.sh#L7-L8
这里会更改/data
目录原本的权限信息
在群晖里使用时无法运行,报错:
2017-12-08 12:26:29 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
---|---|---|
2017-12-08 12:26:29 | stdout | Start aria2 with standard mode |
2017-12-08 12:26:29 | stdout | false |
2017-12-08 12:26:29 | stdout | Run aria2c and ariaNG |
2017-12-08 12:26:04 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:26:04 | stdout | Start aria2 with standard mode |
2017-12-08 12:26:04 | stdout | false |
2017-12-08 12:26:04 | stdout | Run aria2c and ariaNG |
2017-12-08 12:18:27 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:18:27 | stdout | Start aria2 with standard mode |
2017-12-08 12:18:27 | stdout | false |
2017-12-08 12:18:27 | stdout | Run aria2c and ariaNG |
2017-12-08 12:12:54 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:12:53 | stdout | Start aria2 with standard mode |
2017-12-08 12:12:53 | stdout | false |
2017-12-08 12:12:53 | stdout | Run aria2c and ariaNG |
2017-12-08 12:11:37 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:11:37 | stdout | Start aria2 with standard mode |
2017-12-08 12:11:37 | stdout | false |
2017-12-08 12:11:37 | stdout | Run aria2c and ariaNG |
2017-12-08 12:11:04 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:11:04 | stdout | Start aria2 with standard mode |
2017-12-08 12:11:04 | stdout | false |
2017-12-08 12:11:04 | stdout | Run aria2c and ariaNG |
2017-12-08 12:07:49 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:07:49 | stdout | Start aria2 with standard mode |
2017-12-08 12:07:49 | stdout | false |
2017-12-08 12:07:49 | stdout | Run aria2c and ariaNG |
2017-12-08 12:07:35 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:07:35 | stdout | Start aria2 with standard mode |
2017-12-08 12:07:35 | stdout | false |
2017-12-08 12:07:35 | stdout | Run aria2c and ariaNG |
2017-12-08 12:07:28 | stdout | /root/conf/aria2c.sh: line 26: caddy: not found |
2017-12-08 12:07:27 | stdout | Start aria2 with standard mode |
2017-12-08 12:07:27 | stdout | false |
2017-12-08 12:07:27 | stdout | Run aria2c and ariaNG |
I am getting the following error and torrent stops at [METADATA]
[ERROR] Exception caught while loading DHT routing table from /root/.cache/aria2/dht.dat
aria2c.1 | Exception: [DHTRoutingTableDeserializer.cc:83] errorCode=1 Failed to load DHT routing table from /root/.cache/aria2/dht.dat
我使用的是docker run -d --name ariang -p 80:80 -p 6800:6800 wahyd4/aria2-ui这样启动的
The log say that [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set
. But i have set it in my compose file.
version: "3.5"
services:
aria2-ui:
restart: unless-stopped
image: wahyd4/aria2-ui:latest
environment:
- ENABLE_AUTH=true
- ARIA2_USER=myuser
- ARIA2_PWD=mypass
- DOMAIN=mydomain.tld
- PUID=1000
- PGID=1000
- RPC_SECRET=myseceret
- ARIA2_SSL=false
volumes:
- ./data:/data
ports:
- 80:80
- 443:443
已經設置
檔案對應到, /app/conf/aria2.session。
但是每次 Docker重開,歷史紀錄還是不見了。
請問正確的檔案對應路徑 ?
如何支持https外网访问呢,文档里没看到说明,可以告知下吗?
群辉docker下运行,chrome浏览器无法连接rpc,ie能连上不过下载没有速度
Failed to load http://xxx.xxx:6800/jsonrpc: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.xxx:6880' is therefore not allowed access.
Sorry to ask stupid question.
I found some blog, but I can't understand how about make those files.
Please guide me to a useful website, or make a simple tutorial.
if i don't use key file, what would be happen?
Hi Junv I really this app. I am using this on my AWS instances. And I wanted to know how can I deploy this app on Heroku.
Should I deploy it directly by connecting the github repository or through heroku's docker login?
Thank You.
一般linux使用80端口需要较高的权限,而container一般nat到host上的时候可以自由设置端口。
所以建议修改为一般端口,如8080等
文档中描述视频播放由 fileManager 提供,但是在 fileManager 中并没有找到这个功能,是需要另外配置么?
aria2
有时候需要和nfs
之类的一起部署,会有权限问题,希望增加可以指定运行用户功能。
参考https://github.com/lukasmrtvy/lsiobase-aria2-webui
已经连接正确,添加下载任务就提示错误
Exception: [AbstractCommand.cc:351] errorCode=1 URI=http://dlied5.myapp.com/myapp/1104466820/sgame/2017_com.tencent.tmgp.sgame_h177_1.42.1.6_a6157f.apk
-> [SocketCore.cc:437] errorCode=1 Failed to resolve the hostname 58.216.96.50, cause: System error
bridge 模式 80:80 6800:6800
但是用host 模式 下载正常
其他参数没变
我准备自己构建一个纯Aria2的image,但是默认是root,不知道怎么设置user mapping,请教一下
docker-compose.yaml
version: "3.5"
services:
aria2-ui:
restart: unless-stopped
image: wahyd4/aria2-ui:latest
environment:
- ENABLE_AUTH=true
- ARIA2_USER=myuser
- ARIA2_PWD=mypass
- DOMAIN=mydomain.tld
- PUID=1000
- PGID=1000
- RPC_SECRET=myseceret
- ARIA2_SSL=false
volumes:
- ./data:/data
ports:
- 10001:80
- 10002:443
docker-compose logs
aria2-ui_1 | **** update uid and gid to 1000:1000 ****
aria2-ui_1 | usermod: no changes
aria2-ui_1 | **** give caddy permissions to use low ports ****
aria2-ui_1 | forego | starting filebrowser.1 on port 5000
aria2-ui_1 | forego | starting caddy.1 on port 5100
aria2-ui_1 | forego | starting aria2c.1 on port 5300
aria2-ui_1 | caddy.1 | Run aria2c and ariaNG
aria2-ui_1 | caddy.1 | Using Basic Auth config file
aria2-ui_1 | aria2c.1 | Start aria2 with standard mode
aria2-ui_1 | caddy.1 | 2019/10/24 04:25:36 decoding certificate metadata: unexpected end of JSON input
aria2-ui_1 | forego | sending SIGTERM to filebrowser.1
aria2-ui_1 | forego | sending SIGTERM to aria2c.1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ee5ad52c3ea6 wahyd4/aria2-ui:arm64_20190316_1 "/bin/sh /root/aria2…" 7 seconds ago Exited (159) 6 seconds ago aria2-ui
docker logs ee5ad52c3ea6 outputted nothing.
用教程里的这个命令进行修改以后,启动容器就自动停止了,无法启动起来,删掉一些参数也无法启动。不知道什么原因。
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 /root/a.db:/root/filebrowser.db
-v /yoursslkeys/:/root/conf/key
-v :/root/conf/aria2.conf
wahyd4/aria2-ui
The aria2 conf file is written
General Options
log=/var/log/aria2.log
log-level=info
The level of info is meaningless,
it will waste the disk space(it was take more 30GiB during download bt)
and disk I/O for logging.
It had better to change to null or error to reduce the disk space.
How about the following suggestion? @wahyd4
Change
log=/var/log/aria2.log -> log=
Or
log-level=info -> log-level=error
Reference:
https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-log-level
Hi,I hope change File Manager Root directory different from aria2 dowloads directory. because I want Manager more files instead of only aria2 dowloads directory. Thanks a lot
First of all, thank you very much for your project.
if you take -v /app/a.db:/app/filebrowser.db \
Unable to start properly
Log prompt filebrowser.1 | 2019/09/23 04:10:19 No config file used filebrowser.1 | 2019/09/23 04:10:19 the resource does not exist
but I have this file in the corresponding mount directory
No way. I can't start until I remove this parameter.
Another problem is that it takes up too much space. My host root directory has been occupied (76G) after running for a week. Is there any way to reduce the occupancy? / The corresponding container files under var/lib/docker/overlay2 were deleted before the system started normally. I rebuilt it. What can I do to reduce the occupancy? My hard disk is not rich. Can I change my configuration file to solve this problem?
Thank you again for your work!!!!!!!!
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
docker更新很及时, 但内置的airaNg版本还停留在1.1.1
浏览器开发者模式看到当打开 http://ip/files 时所需静态文件不存在。都是404。并且容器中/usr/local/www/aria2/ 文件下确实没有static文件夹。多次重新部署还是不行。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.