diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-03-07 22:09:19 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-07 22:09:19 +0000 |
| commit | b978f9a4de662270a7874d16315f6827e58c2b0b (patch) | |
| tree | 6668af01e951e31cd4320b1b2985d4506cbbdc3b /atuin-server/src/settings.rs | |
| parent | fix(client): always read session_path from settings (#757) (diff) | |
| download | atuin-b978f9a4de662270a7874d16315f6827e58c2b0b.zip | |
Add register notification webhook (#764)
I find it super motivating when people use my stuff, so this makes it
_even easier_ to know when someone new signs up!
Diffstat (limited to 'atuin-server/src/settings.rs')
| -rw-r--r-- | atuin-server/src/settings.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/atuin-server/src/settings.rs b/atuin-server/src/settings.rs index 8da0c0aa..b689983c 100644 --- a/atuin-server/src/settings.rs +++ b/atuin-server/src/settings.rs @@ -15,6 +15,8 @@ pub struct Settings { pub db_uri: String, pub open_registration: bool, pub max_history_length: usize, + pub register_webhook_url: Option<String>, + pub register_webhook_username: String, } impl Settings { @@ -37,6 +39,7 @@ impl Settings { .set_default("open_registration", false)? .set_default("max_history_length", 8192)? .set_default("path", "")? + .set_default("register_webhook_username", "")? .add_source( Environment::with_prefix("atuin") .prefix_separator("_") |
