-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ethan Donowitz
committed
Jul 22, 2021
1 parent
3e5c2a1
commit c1ec820
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,11 +82,6 @@ pub struct Settings { | |
|
||
/// Settings specific to Tokenserver | ||
pub tokenserver: TokenserverSettings, | ||
|
||
// XXX: This is a temporary setting used to enable Tokenserver-related features. In | ||
// the future, Tokenserver will always be enabled, and this setting will be | ||
// removed. | ||
pub enable_tokenserver: bool, | ||
} | ||
|
||
impl Default for Settings { | ||
|
@@ -114,7 +109,6 @@ impl Default for Settings { | |
enforce_quota: false, | ||
spanner_emulator_host: None, | ||
tokenserver: TokenserverSettings::default(), | ||
enable_tokenserver: false, | ||
} | ||
} | ||
} | ||
|
@@ -168,9 +162,10 @@ impl Settings { | |
s.set_default("enforce_quota", false)?; | ||
|
||
// Set Tokenserver defaults | ||
s.set_default("enable_tokenserver", false)?; | ||
s.set_default("tokenserver.fxa_metrics_hash_secret", "secret")?; | ||
s.set_default("tokenserver.database_url", "mysql://[email protected]/tokenserver")?; | ||
s.set_default("tokenserver.enabled", false)?; | ||
s.set_default("tokenserver.fxa_email_domain", "test.com")?; | ||
s.set_default("tokenserver.fxa_metrics_hash_secret", "secret")?; | ||
|
||
// Merge the config file if supplied | ||
if let Some(config_filename) = filename { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters