feat: add support for TLS with Postgres
This commit is contained in:
parent
193b4213b3
commit
4c7f54020b
2 changed files with 6 additions and 1 deletions
|
@ -47,6 +47,7 @@ type Config struct {
|
|||
DBname string
|
||||
DBuser string
|
||||
DBpass string
|
||||
DBssl bool
|
||||
|
||||
TLS TLSConfig
|
||||
|
||||
|
@ -506,6 +507,7 @@ func GetHeadscaleConfig() (*Config, error) {
|
|||
DBname: viper.GetString("db_name"),
|
||||
DBuser: viper.GetString("db_user"),
|
||||
DBpass: viper.GetString("db_pass"),
|
||||
DBssl: viper.GetBool("db_ssl"),
|
||||
|
||||
TLS: GetTLSConfig(),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue