added write config support

This commit is contained in:
2025-06-28 12:03:56 +01:00
parent be1f3308ca
commit 36930be8e4
8 changed files with 63 additions and 14 deletions

View File

@@ -40,6 +40,7 @@ type Config struct {
UnsafeMode bool
Test bool
CustomConfig interface{}
ConfigPath string
//NetworkInterface string
//NetworkInterfaceIPV6Index int
}

View File

@@ -96,6 +96,7 @@ func SetDefaults(envName string, forceDefault bool, CustomConfig interface{}, No
Defaults.BareMetal = false
Defaults.UnsafeMode = false
Defaults.Test = false
Defaults.ConfigPath = defaultPath + "config.json"
// Generate certificate files for SSL
err = GenerateCertificate()