Skip to content
Snippets Groups Projects
Commit f532c13b authored by power puffin's avatar power puffin
Browse files

Added config options for Lets Encrypt staging environment in menshen

parent 0fb116cd
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ type Config struct {
MenshenAllowGatewayList bool
MenshenAllowBridgeList bool
MenshenAutoTLS bool
MenshenLeStaging bool
MenshenFromEIPURL string
MenshenClientCertURL string
MenshenCAFile string
......@@ -88,6 +89,9 @@ func NewConfigFromViper() *Config {
cfg.MenshenAutoTLS = autotls
}
}
if leStaging := viper.GetBool("menshen.le-staging"); leStaging {
cfg.MenshenLeStaging = leStaging
}
gwList := viper.GetBool("menshen.allow-gateway-list")
cfg.MenshenAllowGatewayList = gwList
......
......@@ -104,6 +104,7 @@ func RunVPN() {
fmt.Sprintf("MENSHEN_ALLOW_GATEWAY_LIST=%v", cfg.MenshenAllowGatewayList),
fmt.Sprintf("MENSHEN_ALLOW_BRIDGE_LIST=%v", cfg.MenshenAllowBridgeList),
fmt.Sprintf("MENSHEN_AUTO_TLS=%v", cfg.MenshenAutoTLS),
fmt.Sprintf("MENSHEN_LE_STAGING=%v", cfg.MenshenLeStaging),
fmt.Sprintf("MENSHEN_PORT=%v", cfg.MenshenPort),
fmt.Sprintf("MENSHEN_SERVER_NAME=%v", cfg.MenshenServerName),
fmt.Sprintf("MENSHEN_CA_FILE=%v", cfg.MenshenCAFile),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment