Skip to content

Commit

Permalink
ci: remove smtp port options
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Jul 31, 2024
1 parent 15ea505 commit 21a362e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sea-orm = { version = "=1.0.0-rc.5", features = [
"debug-print",
"postgres-array",
"macros",
"runtime-tokio-rustls",
"runtime-tokio-native-tls",
"sqlx-postgres",
"with-chrono",
"with-json",
Expand Down
5 changes: 1 addition & 4 deletions apps/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ isolang = { version = "=2.4.0", features = ["list_languages"] }
itertools = "=0.13.0"
jsonwebtoken = { version = "=9.3.0", default-features = false }
kinded = "=0.3.0"
lettre = { version = "=0.11.7", features = [
"smtp-transport",
"builder",
], default-features = false }
lettre = "=0.11.7"
markdown = "=1.0.0-alpha.18"
mime_guess = "=2.0.5"
nanoid = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions apps/backend/src/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ impl NotificationPlatformSpecifics {
config.server.smtp.password.to_owned(),
);

let mailer = SmtpTransport::starttls_relay(&config.server.smtp.server)
let mailer = SmtpTransport::relay(&config.server.smtp.server)
.unwrap()
.port(config.server.smtp.port)
.credentials(credentials)
.build();

Expand Down
3 changes: 0 additions & 3 deletions docs/includes/backend-config-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ server:
# @envvar SERVER_SMTP_PASSWORD
password: ""

# @envvar SERVER_SMTP_PORT
port: 587

# @envvar SERVER_SMTP_SERVER
server: ""

Expand Down
2 changes: 0 additions & 2 deletions libs/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ pub struct SchedulerConfig {
#[config(rename_all = "snake_case", env_prefix = "SERVER_SMTP_")]
pub struct SmtpConfig {
pub server: String,
#[setting(default = 587)]
pub port: u16,
pub user: String,
pub password: String,
#[setting(default = "Ryot <[email protected]>")]
Expand Down

0 comments on commit 21a362e

Please sign in to comment.