File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/StudentAppBackend/Configure Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public func configure(_ app: Application) throws {
1313 username: " root " ,
1414 password: " " ,
1515 database: " student_app_test_db " ,
16- tlsConfiguration: . forClient ( certificateVerification : . none )
16+ tlsConfiguration: . makeClientConfiguration ( )
1717 ) , as: . mysql)
1818 // JWT setup
1919 app. jwt. signers. use ( . hs256( key: " your-secret-key " . data ( using: . utf8) !) )
@@ -28,7 +28,7 @@ public func configure(_ app: Application) throws {
2828 username: Environment . get ( " DB_USER " ) ?? " root " ,
2929 password: Environment . get ( " DB_PASSWORD " ) ?? " password " ,
3030 database: Environment . get ( " DB_NAME " ) ?? " student_db " ,
31- tlsConfiguration: . forClient ( certificateVerification : . none )
31+ tlsConfiguration: . makeClientConfiguration ( )
3232 ) , as: . mysql)
3333 // JWT setup
3434 app. jwt. signers. use ( . hs256( key: " your-secret-key " . data ( using: . utf8) !) )
You can’t perform that action at this time.
0 commit comments