[feature] Start adding advanced configuration options, starting with samesite (#628)

* fix incorrect port being used for db

* start adding advanced config flags

* use samesite lax by default
This commit is contained in:
tobi 2022-06-03 15:40:38 +02:00 committed by GitHub
commit 327d3f001f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 135 additions and 18 deletions

View file

@ -348,7 +348,7 @@ func deriveBunDBPGOptions() (*pgx.ConnConfig, error) {
if address != "" {
cfg.Host = address
}
if port := config.GetPort(); port > 0 {
if port := config.GetDbPort(); port > 0 {
cfg.Port = uint16(port)
}
if u := config.GetDbUser(); u != "" {