Generate and read the Noise private key
This commit is contained in:
parent
09cd7ba304
commit
6e8e2bf508
3 changed files with 30 additions and 8 deletions
|
@ -34,6 +34,7 @@ type Config struct {
|
|||
NodeUpdateCheckInterval time.Duration
|
||||
IPPrefixes []netaddr.IPPrefix
|
||||
PrivateKeyPath string
|
||||
NoisePrivateKeyPath string
|
||||
BaseDomain string
|
||||
LogLevel zerolog.Level
|
||||
DisableUpdateCheck bool
|
||||
|
@ -487,6 +488,9 @@ func GetHeadscaleConfig() (*Config, error) {
|
|||
PrivateKeyPath: AbsolutePathFromConfigPath(
|
||||
viper.GetString("private_key_path"),
|
||||
),
|
||||
NoisePrivateKeyPath: AbsolutePathFromConfigPath(
|
||||
viper.GetString("noise_private_key_path"),
|
||||
),
|
||||
BaseDomain: baseDomain,
|
||||
|
||||
DERP: derpConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue