Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PgSQL SSL and PgSQL dsn hostname. #437 #438

Closed
wants to merge 2 commits into from
Closed

PgSQL SSL and PgSQL dsn hostname. #437 #438

wants to merge 2 commits into from

Conversation

volga629-1
Copy link

@volga629-1 volga629-1 commented Oct 5, 2020

PgSQL SSL and PgSQL dsn hostname.

@CLAassistant
Copy link

CLAassistant commented Oct 5, 2020

CLA assistant check
All committers have signed the CLA.

PgSQL SSL and PgSQL dsn hostname. #437 P2
Config file adjustment
@@ -107,12 +107,14 @@ func ConnectString(dbName string) (string, error) {
addr[0] = addr[1]
addr[1] = "''"
}
dsn = "sslmode=disable connect_timeout=4" +
sslmode = config.Setting.DBSSLMode or "disable"
dsn = "connect_timeout=4" +
" host=" + addr[0] +
" port=" + addr[1] +
" dbname=" + dbName +
" user=" + config.Setting.DBUser +
" password=" + config.Setting.DBPass
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing + on the end

@volga629-1 volga629-1 closed this Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants