fix: add agent key auth for ingest endpoints
This commit is contained in:
@@ -103,7 +103,7 @@ func loadConfig() *Config {
|
||||
|
||||
return &Config{
|
||||
ServerURL: getEnv("OPHION_SERVER", "http://localhost:8080"),
|
||||
APIKey: getEnv("OPHION_API_KEY", ""),
|
||||
APIKey: getEnv("OPHION_API_KEY", getEnv("AGENT_KEY", "")),
|
||||
Hostname: getEnv("OPHION_HOSTNAME", hostname),
|
||||
CollectInterval: interval,
|
||||
DockerEnabled: dockerEnabled,
|
||||
|
||||
Reference in New Issue
Block a user