mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
connect with SSL
This commit is contained in:
parent
245c56eae0
commit
49a89d3674
2 changed files with 4 additions and 2 deletions
|
@ -58,7 +58,8 @@ func main() {
|
|||
// Set up Postgres connection
|
||||
var pool *pgxpool.Pool
|
||||
{
|
||||
config, err := pgxpool.ParseConfig(os.Getenv("DATABASE_CONNECTION_POOL_URL"))
|
||||
url := fmt.Sprintf("%s?sslmode=require", os.Getenv("DATABASE_CONNECTION_POOL_URL"))
|
||||
config, err := pgxpool.ParseConfig(url)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
@ -56,7 +56,8 @@ func main() {
|
|||
// Set up Postgres connection
|
||||
var pool *pgxpool.Pool
|
||||
{
|
||||
config, err := pgxpool.ParseConfig(os.Getenv("DATABASE_CONNECTION_POOL_URL"))
|
||||
url := fmt.Sprintf("%s?sslmode=require", os.Getenv("DATABASE_CONNECTION_POOL_URL"))
|
||||
config, err := pgxpool.ParseConfig(url)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue