Skip to content

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

chore(backend:auth): enable MFA by default

johaven4dfeac57ad6b
diff --git a/backend/src/authentication/auth.config.ts b/backend/src/authentication/auth.config.ts
index 7059b487..837544fa 100644
--- a/backend/src/authentication/auth.config.ts
+++ b/backend/src/authentication/auth.config.ts
@@ -24,7 +24,7 @@ import { ACCESS_KEY, CSRF_KEY, REFRESH_KEY, WS_KEY } from './constants/auth'
export class AuthMfaTotpConfig {
@IsBoolean()
- enabled = false
+ enabled = true
@IsString()
issuer = SERVER_NAME
diff --git a/docker/environment.yaml b/docker/environment.yaml
index 63793b00..d751a1eb 100755
--- a/docker/environment.yaml
+++ b/docker/environment.yaml
@@ -4,6 +4,7 @@ server:
mysql:
url: mysql://root:MySQLRootPassword@mariadb:3306/sync_in
auth:
+ encryptionKey: changeEncryptionKeyWithStrongKey
token:
access:
secret: changeAccessWithStrongSecret
diff --git a/environment/environment.dist.yaml b/environment/environment.dist.yaml
index 8b594601..161409c2 100755
--- a/environment/environment.dist.yaml
+++ b/environment/environment.dist.yaml
@@ -80,8 +80,8 @@ auth:
# totp configuration
totp:
# enable TOTP authentication
- # default: false
- enabled: false
+ # default: true
+ enabled: true
# name displayed in the authentication app (FreeOTP, Proton Authenticator, Aegis Authenticator etc.)
# default: Sync-in
issuer: Sync-in