webui-aria2 icon indicating copy to clipboard operation
webui-aria2 copied to clipboard

Support passing connection settings as URL parameters

Open pxia opened this issue 9 years ago • 4 comments

It baffles me that for every aria2 server, we need another server to host a few static pages in order to use this UI. I personally have two aria2 servers and I don't want create my own instance of the UI server. I use http://ziahamza.github.io/webui-aria2/ and have to manually change the host address in connection settings back and forth between the two servers.

It would be great if we can specify the connection settings from the URL like this:

http://ziahamza.github.io/webui-aria2/?host=192.168.1.1&port=6800&rpcpath=/jsonrpc

Then we only need one URL per server. Which is very bookmark-friendly. We also don't need to set up our own server and use the fast GitHub CDN.

I'm not good with front-end stuff, but a quick Google search says it's possible with Javascript: http://stackoverflow.com/questions/11582512/how-to-get-url-parameters-with-javascript

pxia avatar Oct 25 '16 05:10 pxia

Any updated about this? Is this planned at all?

Suncatcher avatar Jun 27 '17 09:06 Suncatcher

I'm not actively working on this.

I'm not entirely sure how to proceed because there is some security issues regarding transmitting the aria2 password/token unencrypted over internet, though.

pxia avatar Jun 28 '17 00:06 pxia

I don't quite like this idea as well. for the very same reason as @pxia

anthonyraymond avatar Jul 09 '18 20:07 anthonyraymond

I think this is a really useful feature. Yaaw and aria-ng both support this feature (rest api): yaaw simply transfer token/password as plain text , which is really a bad idea aria-ng use base64 encode the token field, which is slightly better Maybe we can use other encryption method (aes or rsa ) or we can just init anything else except token?

KinglyWayne avatar Jul 25 '18 18:07 KinglyWayne