fiatjaf / noscl

Command line client for Nostr.
Other
269 stars 53 forks source link

Where to store config file? #18

Closed vinliao closed 2 years ago

vinliao commented 2 years ago

I'm building a Rust CLI client (https://github.com/vinliao/clust). I took some inspiration and ideas from noscl (thank you very much). I'm still confused where to place the config file, which contains private-key and a list of relays.

I haven't tried noscl. Where does it store config file? Is the config file json, or an rc file (like .vimrc)? Is storing private-key in a plaintext, placed in $HOME safe enough?

honza commented 2 years ago

By default, it's ~/.config/nostr/config.json. Have a look here.

vinliao commented 2 years ago

Ah, I didn't see that particular line of code. Thanks. What about Windows?

Edit: A quick Google search tells me to store config file in C:\Users\<Username>\AppData\. Thanks @honza, you're helpful!