tus-node-server icon indicating copy to clipboard operation
tus-node-server copied to clipboard

Allow setting custom paths for the configstore

Open psi-4ward opened this issue 7 years ago • 4 comments

Storing Metadata in ~/.config/configstore is rather impractical. You should at least provide an option to set the path.

psi-4ward avatar Dec 23 '16 09:12 psi-4ward

Completely agree. Feel free to open a PR with that option!

bhstahl avatar Dec 23 '16 14:12 bhstahl

In fact, "Allow setting custom paths for the configstore" is about changing configstore with another solution. To quote configstore package,

Easily load and persist config without having to think about where and how

If you don't want the default path, just don't use configstore package. I will try to come back with a more solution oriented comment soon.

ThomasG77 avatar Jun 15 '17 21:06 ThomasG77

Perhaps https://www.npmjs.com/package/rc is helpful here?

kvz avatar Jun 22 '17 11:06 kvz

You should be able to change the configuration directory using the XDG_CONFIG_HOME environment variable (we are using configstore internally which can be configured in that way).

That being said it might still be beneficial to switch to another storage mode.

Acconut avatar May 01 '18 07:05 Acconut

It's now possible to provide your own configstore.

Murderlon avatar Dec 13 '22 13:12 Murderlon