[GH-ISSUE #379] Manage env variables #220

Closed
opened 2026-03-03 01:26:53 +03:00 by kerem · 2 comments
Owner

Originally created by @chielmi on GitHub (Feb 1, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/379

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). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/379 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?
kerem closed this issue 2026-03-03 01:26:53 +03:00
Author
Owner

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

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

<!-- gh-comment-id:459835058 --> @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
<!-- gh-comment-id:534887966 --> @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.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#220
No description provided.