Added support for sqlite as database backend

This commit is contained in:
Juan Font Alonso 2021-05-15 14:32:26 +02:00
parent 619201ec9b
commit 216c6d85b2
3 changed files with 20 additions and 4 deletions

View file

@ -43,6 +43,8 @@ func getHeadscaleApp() (*headscale.Headscale, error) {
PrivateKeyPath: absPath(viper.GetString("private_key_path")),
DerpMap: derpMap,
DBtype: viper.GetString("db_type"),
DBpath: viper.GetString("db_path"),
DBhost: viper.GetString("db_host"),
DBport: viper.GetInt("db_port"),
DBname: viper.GetString("db_name"),