Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I set a login password #346

Closed
Edelwiess opened this issue May 7, 2017 · 6 comments
Closed

How can I set a login password #346

Edelwiess opened this issue May 7, 2017 · 6 comments

Comments

@Edelwiess
Copy link

I setup my aria2 on vps
and aria2 webUI on same vps
Now anyone can use httpurl to access in to download thing on my vps.
I need to setup a password for webUI how can I do that?

@safiyat
Copy link

safiyat commented May 10, 2017

@Edelwiess You can use the --rpc-secret switch with aria2c to enable a password for access.
You can also do it via a configuration file. The configuration file at $HOME/.aria2/aria2.conf should contain:

rpc-secret=<password>

@leolelego
Copy link

I agreed, set password for the RPC is possible, but not for the WebUI, so everybody with the URL of my server can go to the webui and download file on my server.

Somebody try a htaccess or something ?

@safiyat
Copy link

safiyat commented Jul 8, 2017

The web-UI can be accessed from anywhere! If you lock your UI with .htaccess, the attacker will use his own UI, but of course it won't work without authorizing RPC.

@Edelwiess
Copy link
Author

finally I set RPC on VPS and set webUI server in local
that fixed this problem.

@imirzadeh
Copy link

If you want to run webui-aria2 on your own vps, you can use nginx:
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-nginx-on-ubuntu-14-04

@alexya
Copy link

alexya commented Aug 11, 2019

@Edelwiess I met the same issue. I only need to run aria2-webui in my local machine. Every time I have to input the "secret" to connect to my aria2 server.
How did you resolve the issue? such as save or hard-code the secret to webUI local?
Thx a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants