Skip to content

Commit 21a362e

Browse files
committed
ci: remove smtp port options
1 parent 15ea505 commit 21a362e

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

Cargo.lock

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sea-orm = { version = "=1.0.0-rc.5", features = [
2929
"debug-print",
3030
"postgres-array",
3131
"macros",
32-
"runtime-tokio-rustls",
32+
"runtime-tokio-native-tls",
3333
"sqlx-postgres",
3434
"with-chrono",
3535
"with-json",

apps/backend/Cargo.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ isolang = { version = "=2.4.0", features = ["list_languages"] }
4444
itertools = "=0.13.0"
4545
jsonwebtoken = { version = "=9.3.0", default-features = false }
4646
kinded = "=0.3.0"
47-
lettre = { version = "=0.11.7", features = [
48-
"smtp-transport",
49-
"builder",
50-
], default-features = false }
47+
lettre = "=0.11.7"
5148
markdown = "=1.0.0-alpha.18"
5249
mime_guess = "=2.0.5"
5350
nanoid = { workspace = true }

apps/backend/src/notification.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,8 @@ impl NotificationPlatformSpecifics {
163163
config.server.smtp.password.to_owned(),
164164
);
165165

166-
let mailer = SmtpTransport::starttls_relay(&config.server.smtp.server)
166+
let mailer = SmtpTransport::relay(&config.server.smtp.server)
167167
.unwrap()
168-
.port(config.server.smtp.port)
169168
.credentials(credentials)
170169
.build();
171170

docs/includes/backend-config-schema.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ server:
206206
# @envvar SERVER_SMTP_PASSWORD
207207
password: ""
208208

209-
# @envvar SERVER_SMTP_PORT
210-
port: 587
211-
212209
# @envvar SERVER_SMTP_SERVER
213210
server: ""
214211

libs/config/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ pub struct SchedulerConfig {
338338
#[config(rename_all = "snake_case", env_prefix = "SERVER_SMTP_")]
339339
pub struct SmtpConfig {
340340
pub server: String,
341-
#[setting(default = 587)]
342-
pub port: u16,
343341
pub user: String,
344342
pub password: String,
345343
#[setting(default = "Ryot <no-reply@mailer.io>")]

0 commit comments

Comments
 (0)