Manage env variables #220

Closed
opened 2025-11-07 06:28:56 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @chielmi on GitHub (Feb 1, 2019).

Great docker!

There is one thing I can't figure out. I would like to disable user registration. This should be possible by adding globalSettings__disableUserRegistration=true to ./bwdata/env/global.override.env

But I can't figure out how to do this. The container has no /bwdata. I have mapped /data to a local drive, but adding the global.override.env file in that location made no difference.

Is there a way to add this variable?

Originally created by @chielmi on GitHub (Feb 1, 2019). Great docker! There is one thing I can't figure out. I would like to disable user registration. This should be possible by adding _globalSettings__disableUserRegistration=true_ to ./bwdata/env/global.override.env But I can't figure out how to do this. The container has no /bwdata. I have mapped /data to a local drive, but adding the global.override.env file in that location made no difference. Is there a way to add this variable?
Author
Owner

@mprasil commented on GitHub (Feb 1, 2019):

Hi, please see here - you basically just set the appropriate env variable. Hope that helps.

@mprasil commented on GitHub (Feb 1, 2019): Hi, please see [here](https://github.com/dani-garcia/bitwarden_rs/wiki/Disable-registration-of-new-users) - you basically just set the appropriate env variable. Hope that helps.
Author
Owner

@hboetes commented on GitHub (Sep 25, 2019):

bit clumsy but here's how I do it:

grep -v '^#' .env|sed -e 's|^|export |' > env
source env
cargo run --features sqlite --release
@hboetes commented on GitHub (Sep 25, 2019): bit clumsy but here's how I do it: ``` grep -v '^#' .env|sed -e 's|^|export |' > env source env cargo run --features sqlite --release ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#220