Example #1
0
func init() {
	env.Var(&config.Port, "PORT", "8080", "Port to bind to")
	env.Var(&config.Address, "ADDR", "0.0.0.0", "Address to bind to")
	env.Var(&config.Api, "API", "http://127.0.0.1:8080", "Base URL where the API will be reachable. This URL is used be the frontend (/ui) in order to access the backend.")
	env.Var(&config.File, "FILE", "data/netdef.yaml", "Base directories of the repos")
	env.Var(&config.LockDuration, "LOCK_DURATION", "30", "Duration of a lock in minutes")
}
Example #2
0
func init() {
	env.Var(&cfg.Port, "PORT", "8008", "Port to bind to")
	env.Var(&cfg.Address, "ADDR", "0.0.0.0", "Address to bind to")
	env.Var(&cfg.Store, "STORE", "/tmp/gerty.sqlite3", "Store configuration string")
	env.Var(&cfg.NodeVarsProviders, "NODEVARS_PROVIDERS", "[]", "JSON string to configure nodevars providers")
	env.Var(&cfg.JenkinsFileName, "JEN_FILE_NAME", "inventory.json", "Name of the backup file")
	env.Var(&cfg.JenkinsToken, "JEN_TOKEN", "token", "Jenkins access token")
	env.Var(&cfg.JenkinsJobName, "JEN_JOB_NAME", "inventory.archive", "Jenkins job name")
	env.Var(&cfg.JenkinsBaseUrl, "JEN_BASE_URL", "NONE", "Jenkins base URL or 'NONE' in order to disable Jenkins WebHook")
}
Example #3
0
func init() {
	env.Var(&config.Port, "PORT", "8080", "Port to bind to")
	env.Var(&config.Listen, "LISTEN", "0.0.0.0", "IP address to bind to")
}