aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-server/src/settings.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-03-07 22:09:19 +0000
committerGitHub <noreply@github.com>2023-03-07 22:09:19 +0000
commitb978f9a4de662270a7874d16315f6827e58c2b0b (patch)
tree6668af01e951e31cd4320b1b2985d4506cbbdc3b /atuin-server/src/settings.rs
parentfix(client): always read session_path from settings (#757) (diff)
downloadatuin-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.rs3
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("_")