doc(pg): clarify use of standard TLS with SNI and ALPN

This commit is contained in:
AJ ONeal
2024-12-24 23:41:33 +00:00
parent 3e2e7f2f65
commit bc81147500
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ To login: \
# as Postgres admin
psql "postgres://postgres:postgres@localhost:5432/postgres"
# as remote user
# as remote user (over standard TLS and SNI, with ALPN set to 'postgresql')
psql "postgres://db-xxxx@pg-1.example.com:5432/db-xxxx?sslmode=require&sslnegotiation=direct"
```

View File

@@ -38,7 +38,7 @@ psql "postgres://db-xxxx:secret123@pg-1.example.com:5432/db-xxxx"
```
For remote / public networks: \
(with `sslmode` & `sslnegotiation`)
(with `sslmode` & `sslnegotiation` for standard TLS and SNI, with ALPN set to 'postgresql')
```sh
psql "postgres://db-xxxx@pg-1.example.com:5432/db-xxxx?sslmode=require&sslnegotiation=direct"