Skip to content

Commit

Permalink
Update configure.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlik committed Dec 30, 2023
1 parent 6b1d585 commit c9e1b53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/App/configure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public func configure(_ app: Application) async throws {
app.middleware.use(cors, at: .beginning)

var tlsConfig: TLSConfiguration = .makeClientConfiguration()
tlsConfig.certificateVerification = .noHostnameVerification // Use `.noHostnameVerification` if your production env will be using something like nginx. Otherwise change it to `.fullVerification`. Command click to check the full details.
// Check if you can increase the security by performing a certificate verification based on your database setup
tlsConfig.certificateVerification = .none
let nioSSLContext = try NIOSSLContext(configuration: tlsConfig)

let config = SQLPostgresConfiguration(
Expand Down

0 comments on commit c9e1b53

Please sign in to comment.