-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add code for large amount of users creation and few recommendations #1
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this! I have to apologize, I had a bulk-user function implemented already (I needed it for BTCFOSS in January) but I didn't push it to the repository. That's now on master branch in a2e5e98
I started reviewing this PR and left a some nits in the English before I realized we'd duplicated work. Take a look at the --n
option I wrote and let me know if this satisfies your use case as well
- Optionally add `-signet`, etc for different network | ||
- Start proxy server: `python src/server.py main` | ||
- Optionally replace `main` with `signet`, etc. | ||
- Use `nohup` or `tmux` to ensure that the server process is not killed when exiting the terminal or session. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should go before "start proxy server" and indicate its optional.
@@ -34,6 +36,15 @@ Password for newuser1: lYDk7mbTiN60 | |||
~/rpc-auth-proxy$ python src/users.py newuser2 -p hunter2 | |||
Password for newuser2: hunter2 | |||
``` | |||
### Large amount of Users ### | |||
Another utility that you can use for adding large amount of users it's `src/bulk_users.py`. Hashed passwords are saved by | |||
default in a JSON file at `~/.rpc-auth-proxy-passwords.json`, but another file is saved too with the pair of username and clear password. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the other files name and path?
Co-authored-by: Matthew Zipkin <[email protected]>
Co-authored-by: Matthew Zipkin <[email protected]>
Co-authored-by: Matthew Zipkin <[email protected]>
Changes
Extend code for User/Password creation: Implemented functionality to create a large number of users and their corresponding passwords.
Recommendations in Install and Run sections:
nohup
ortmux
: Suggested usingnohup
ortmux
to run long processes without interruption.