aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-server/src/settings.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-01-27 13:56:18 -0800
committerGitHub <noreply@github.com>2026-01-27 13:56:18 -0800
commite2b421c88479857831e938acb311aef5127f38b4 (patch)
tree0ff160c378f1c151ecb30fa0329aafcee72b8d9d /crates/atuin-server/src/settings.rs
parentchore(deps): cleanup of dep versions (#3106) (diff)
downloadatuin-e2b421c88479857831e938acb311aef5127f38b4.zip
feat: remove user verification functionality (#3108)
<!-- Thank you for making a PR! Bug fixes are always welcome, but if you're adding a new feature or changing an existing one, we'd really appreciate if you open an issue, post on the forum, or drop in on Discord --> ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Diffstat (limited to 'crates/atuin-server/src/settings.rs')
-rw-r--r--crates/atuin-server/src/settings.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/crates/atuin-server/src/settings.rs b/crates/atuin-server/src/settings.rs
index 98d1d69f..3a612be9 100644
--- a/crates/atuin-server/src/settings.rs
+++ b/crates/atuin-server/src/settings.rs
@@ -8,33 +8,6 @@ use serde::{Deserialize, Serialize};
static EXAMPLE_CONFIG: &str = include_str!("../server.toml");
-#[derive(Default, Clone, Debug, Deserialize, Serialize)]
-pub struct Mail {
- #[serde(alias = "enable")]
- pub enabled: bool,
-
- /// Configuration for the postmark api client
- /// This is what we use for Atuin Cloud, the forum, etc.
- #[serde(default)]
- pub postmark: Postmark,
-
- #[serde(default)]
- pub verification: MailVerification,
-}
-
-#[derive(Default, Clone, Debug, Deserialize, Serialize)]
-pub struct Postmark {
- #[serde(alias = "token")]
- pub token: Option<String>,
-}
-
-#[derive(Default, Clone, Debug, Deserialize, Serialize)]
-pub struct MailVerification {
- #[serde(alias = "enable")]
- pub from: String,
- pub subject: String,
-}
-
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Metrics {
#[serde(alias = "enabled")]
@@ -65,7 +38,6 @@ pub struct Settings {
pub register_webhook_url: Option<String>,
pub register_webhook_username: String,
pub metrics: Metrics,
- pub mail: Mail,
/// Enable legacy sync v1 routes (history-based sync)
/// Set to false to use only the newer record-based sync
@@ -108,7 +80,6 @@ impl Settings {
.set_default("metrics.enable", false)?
.set_default("metrics.host", "127.0.0.1")?
.set_default("metrics.port", 9001)?
- .set_default("mail.enable", false)?
.set_default("sync_v1_enabled", true)?
.add_source(
Environment::with_prefix("atuin")