Why is config.json not recommended?

I was reading through the wiki, and on Configuration overview · dani-garcia/vaultwarden Wiki · GitHub it says:

Be aware that the config.json file is NOT the recommended way to configure your settings!

Why is that? — I’m trying to make the decision on the best way for me.

My second question, is enabling the admin page and configuring through the page the same thing as using the config.json file?

I’m fairly new to this. I just got the docker up and running — what should I do next? Do I follow through the wiki?

Thanks!

The main reason is that not everything is able to be configured via that file. Also you always need to restart. It overrules ENV settings.

And format errors are quickly made by manually editing these files, which then also causes strange issues.

The best way is using either a .env file or using the environment options of docker/compose.
That way all config items are loaded via the same way.

1 Like

Thanks! Is using the admin page also not recommended?