On 2025/03/27 07:55, Matthieu Herrb wrote: > > On Wed, Mar 26, 2025 at 10:26:00PM +0000, Stuart Henderson wrote: > > On 2025/03/26 15:45, Kirill A. Korinsky wrote: > > > On Wed, 26 Mar 2025 14:58:25 +0100, > > > Stuart Henderson <s...@spacehopper.org> wrote: > > > > > > > > 1. Anubis is normally configured via environment variables (it is > > > > normally meant for running in Docker and this seems fairly common, > > > > albeit annoying). This can be done via login.conf "setenv", but one > > > > of the required parameters is a URL. It is _possible_ to escape > > > > URL-standard characters for setenv, but the syntax is barely > > > > documented and pretty horrible, so I am sourcing a shell script > > > > /etc/anubis.env instead. > > > > > > > > > > Right now we have security/vaultwarden, productivity/monica and > > > net/librenms > > > which uses .env file as a way to be configured. > > > > > > Not sure that the right way, but I think that /etc/anubis.env is cleaner > > > than /var/vaultwarden/.env > > > > No idea about how vaultwarden works (looks like a pkg-readme might not > > be a bad idea), but for librenms/monica there is no specific daemon and > > this is just a config file used by the symfony PHP framework and I think > > things are ok as they are now. > > > > Vaultwarden is pretty much the same as anubis. The environment file > serves as a config file. In the Linux deployements I manage, we put it > in /etc/vaultwarden.conf (and point the systemd EnvironmentFile > variable to it). > > Having it under /var on .Ox looks a bit weird to my eyes, but I will > not cry if anubis also uses LOCALSTATEDIR for consistency with > vaulwarden in case it's too late to move vaultwarden's default.
That seems internal to vaultwarden though; at least there's nothing handling it in the rc script.