mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-08-22 18:55:24 +00:00
add comment in .env.template, adapt config.rs
This commit is contained in:
parent
4e6cb2a871
commit
1fdc8e2745
2 changed files with 7 additions and 20 deletions
|
@ -77,10 +77,13 @@
|
||||||
# WEBSOCKET_PORT=3012
|
# WEBSOCKET_PORT=3012
|
||||||
|
|
||||||
## Enables push notifications (requires key and id from https://bitwarden.com/host)
|
## Enables push notifications (requires key and id from https://bitwarden.com/host)
|
||||||
|
## If you choose "European Union" Data Region, uncomment PUSH_RELAY_URI and PUSH_IDENTITY_URI then replace .com by .eu
|
||||||
# PUSH_ENABLED=true
|
# PUSH_ENABLED=true
|
||||||
# PUSH_INSTALLATION_ID=CHANGEME
|
# PUSH_INSTALLATION_ID=CHANGEME
|
||||||
# PUSH_INSTALLATION_KEY=CHANGEME
|
# PUSH_INSTALLATION_KEY=CHANGEME
|
||||||
# PUSH_RELAY_REGION=us
|
## Don't change this unless you know what you're doing.
|
||||||
|
# PUSH_RELAY_URI=https://push.bitwarden.com
|
||||||
|
# PUSH_IDENTITY_URI=https://identity.bitwarden.com
|
||||||
|
|
||||||
## Controls whether users are allowed to create Bitwarden Sends.
|
## Controls whether users are allowed to create Bitwarden Sends.
|
||||||
## This setting applies globally to all users.
|
## This setting applies globally to all users.
|
||||||
|
|
|
@ -380,26 +380,10 @@ make_config! {
|
||||||
push {
|
push {
|
||||||
/// Enable push notifications
|
/// Enable push notifications
|
||||||
push_enabled: bool, false, def, false;
|
push_enabled: bool, false, def, false;
|
||||||
/// Push relay region
|
|
||||||
push_relay_region: String, false, def, "us".to_string();
|
|
||||||
/// Push relay uri
|
/// Push relay uri
|
||||||
push_relay_uri: String, false, auto, |c| {
|
push_relay_uri: String, false, def, "https://push.bitwarden.com".to_string();
|
||||||
let push_relay_uri = match c.push_relay_region.as_str() {
|
|
||||||
"us" => "https://push.bitwarden.com".to_string(),
|
|
||||||
"eu" => "https://push.bitwarden.eu".to_string(),
|
|
||||||
_ => "https://push.bitwarden.com".to_string(), // Default to "us" region
|
|
||||||
};
|
|
||||||
push_relay_uri
|
|
||||||
};
|
|
||||||
/// Push identity uri
|
/// Push identity uri
|
||||||
push_identity_uri: String, false, auto, |c| {
|
push_identity_uri: String, false, def, "https://identity.bitwarden.com".to_string();
|
||||||
let push_identity_uri = match c.push_relay_region.as_str() {
|
|
||||||
"us" => "https://identity.bitwarden.com".to_string(),
|
|
||||||
"eu" => "https://identity.bitwarden.eu".to_string(),
|
|
||||||
_ => "https://identity.bitwarden.com".to_string(), // Default to "us" region
|
|
||||||
};
|
|
||||||
push_identity_uri
|
|
||||||
};
|
|
||||||
/// Installation id |> The installation id from https://bitwarden.com/host
|
/// Installation id |> The installation id from https://bitwarden.com/host
|
||||||
push_installation_id: Pass, false, def, String::new();
|
push_installation_id: Pass, false, def, String::new();
|
||||||
/// Installation key |> The installation key from https://bitwarden.com/host
|
/// Installation key |> The installation key from https://bitwarden.com/host
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue