Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

chore(backend:configuration): set mail setting rejectUnauthorized default to false

johaven7a3b499e7847
diff --git a/backend/src/infrastructure/mailer/mailer.config.ts b/backend/src/infrastructure/mailer/mailer.config.ts
index e9ca878e..13a06454 100644
--- a/backend/src/infrastructure/mailer/mailer.config.ts
+++ b/backend/src/infrastructure/mailer/mailer.config.ts
@@ -37,7 +37,7 @@ export class MailerConfig {
@IsOptional()
@IsBoolean()
- rejectUnauthorized?: boolean = true
+ rejectUnauthorized?: boolean = false
@IsOptional()
@IsObject()
diff --git a/environment/environment.dist.yaml b/environment/environment.dist.yaml
index 82d06fea..4af46df1 100755
--- a/environment/environment.dist.yaml
+++ b/environment/environment.dist.yaml
@@ -5,8 +5,8 @@ server:
port: 8080
# workers: `auto` (use all cpus) | number
# regardless of the value, starts with at least 2 workers, 1 worker is dedicated to scheduled tasks
- workers: 4
- # trust proxy: `true` | `false` | `127.0.0.1,192.168.1.1/24` | number (trust the nth hop from the front-facing proxy server as the client)
+ workers: 2
+ # trust proxy: number (trust the nth hop from the front-facing proxy server as the client) | `true` | `false` | `127.0.0.1,192.168.1.1/24`
# default: 1
trustProxy: 1
# restartOnFailure: automatically restart workers if they are killed or die
@@ -68,8 +68,8 @@ mail:
# default: false
ignoreTLS: false
# rejectUnauthorized: reject the connection if the server's TLS certificate is invalid
- # default: true
- rejectUnauthorized: true
+ # default: false
+ rejectUnauthorized: false
# enable logger
# default: `false`
logger: false
@@ -120,7 +120,7 @@ auth:
# filter, e.g: (acl=admin)
filter:
attributes:
- # login attribute (e.g. `uid` | `sAMAccountName` | `userPrincipalName` | `userid`)
+ # login attribute (e.g. `uid` | `sAMAccountName` | `userPrincipalName`)
# default: `uid`
login: uid
# email attribute: `mail` or `email`