peroxide icon indicating copy to clipboard operation
peroxide copied to clipboard

Default settings directory

Open aanderse opened this issue 2 years ago • 1 comments
trafficstars

The default settings directory of /etc/peroxide seems to conflate the idea of application state and configuration. The following values are all application state, not configuration:

https://github.com/ljanyst/peroxide/blob/89164ae00632083a61a44ac51df70435e49e9901/config.example.yaml#L8-L11

Generally /etc/ is meant to be immutable to all except root and these values should reside in /var/lib/peroxide instead.

I understand this would be a fairly breaking change, but I'm curious if you would be receptive of such a change?

aanderse avatar Dec 23 '22 14:12 aanderse

If you like, you could change the defaults for the cookie jar and the credential's store and I'd merge such change. For the X509 stuff, I usually change it to let's encrypt certs, which are located in /etc/letsencrypt, so I would not change these.

ljanyst avatar Dec 24 '22 17:12 ljanyst