Comments (8)
是的,请看 README.md
,rpc-user
和 rpc-passwd
没有被支持。
from glutton.
不是说 aria2
的认证,是 http 服务器的认证。aria2c
已使用 SECRET TOKEN
,外层的 nginx
代理还有一层 HTTP Basic Authentication
from glutton.
即 nginx
配置了 https://www.example.com/jsonrpc
需要 Authentication
nginx
配置
# aria2 jsonrpc
location /jsonrpc {
auth_basic "Authentication required";
auth_basic_user_file /etc/nginx/.dlpasswd;
proxy_pass http://127.0.0.1:6800;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
from glutton.
...明白了
感觉好多余啊,能别这么用不
from glutton.
Glutton 使用了 Fetch API,目前的标准是不支持 Basic access authentication 的,要改起来比较麻烦。
这也是不想支持 rpc-user
和 rpc-passwd
的原因。
from glutton.
webui-aria2
和 yaaw (ajax)
都可以正常工作的,没有这一层心里不踏实。
from glutton.
@NemoAlex 可以使用 fetch('http://user:[email protected]/jsonrpc') 这种方式试试
from glutton.
不用这么麻烦 可以用aria2自带证书功能
from glutton.
Related Issues (5)
- Add torrents by file input HOT 1
- 一次性添加种子数超过网页高度导致提交按钮无法显示 HOT 1
- 下载标题前后不一 HOT 1
- 打开index.html页面为空白 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glutton.