# Request that environemntal variables override config.json

**URL:** <https://vaultwarden.discourse.group/t/request-that-environemntal-variables-override-config-json/124>\
**Category:** Feature Requests\
**Created:** [May 28, 2020, 6:55pm UTC](https://vaultwarden.discourse.group/t/request-that-environemntal-variables-override-config-json/124 "2020-05-28T18:55:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradford](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/bradford/32/55_2.png) [@bradford](https://vaultwarden.discourse.group/u/bradford)\
**Post date:** [May 28, 2020, 6:55pm UTC](https://vaultwarden.discourse.group/t/request-that-environemntal-variables-override-config-json/124/1 "2020-05-28T18:55:03Z")

</div>

I was recently helping a friend set this up using my gcloud guide, and at some point he must have accidentally saved the admin console because when he tried to disable it he couldn’t because the token was saved to his config.json.

I know that while in my case (using Docker) it makes sense to have env variables override config.json, it may not for other use cases.

I think the admin page is a problem area for my use case because of this, and I think I’m going to discourage its use entirely because of this. But if env variables would override it I think it would be much better.

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [May 29, 2020, 8:50am UTC](https://vaultwarden.discourse.group/t/request-that-environemntal-variables-override-config-json/124/2 "2020-05-29T08:50:56Z")

</div>

@bradford, i understand what you mean.  
But that is not really possible because the Admin interface is used to change the configuration at runtime.  
Which means it needs to override the env variables and not the other way around.

Also, during starting of bitwarden\_rs in the log-file you should see that there are settings overridden.  
I’m thinking about a nice way to show this in the admin interface and maybe even show the differences.

---

<div class="post-metadata">

**Author:** ![jjlin](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jjlin](https://vaultwarden.discourse.group/u/jjlin)\
**Post date:** [May 29, 2020, 8:00pm UTC](https://vaultwarden.discourse.group/t/request-that-environemntal-variables-override-config-json/124/3 "2020-05-29T20:00:55Z")

</div>

Customarily, env var values override the corresponding config file values, so the opposite behavior in bitwarden\_rs seems like a common source of confusion. Of course, there are historical reasons for that. Changing the behavior now would potentially break a lot of installations, but one workaround might be to add another config item like `env_overrides={true | false}` to indicate that the environment overrides the config file for people who prefer that.

Maybe in a future major version, the config system can be revamped to start people off with a barebones config file instead of env vars.
