Adds opt-in support for declaring a CA certificate value for the database TLS connection. Some managed postgres solutions, such as DigitalOcean's, require this setting. In order to use it:
set the PENUMBRA_INDEXER_CA_CERT env var with the string contents of the db's CA
remove the sslmode=require from the connection auth string
The need for 2 is because the connectionString param clobbers any manual ssl opts in the db config, and is documented here [0].
I deployed a custom build from this tag to https://dex-explorer.testnet.plinfra.net, and confirmed the setting resolved the db connection issues I was experiencing.
Adds opt-in support for declaring a CA certificate value for the database TLS connection. Some managed postgres solutions, such as DigitalOcean's, require this setting. In order to use it:
sslmode=require
from the connection auth stringThe need for 2 is because the
connectionString
param clobbers any manualssl
opts in the db config, and is documented here [0].Closes #55.
[0] https://node-postgres.com/features/ssl#usage-with-connectionstring