Skip to content

Commit

Permalink
fix: make unifi env vars required
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed May 24, 2024
1 parent b9ce52e commit 415bd44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/unifi/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package unifi

// Configuration holds configuration from environmental variables
type Configuration struct {
Host string `env:"UNIFI_HOST,required"`
User string `env:"UNIFI_USER,required"`
Password string `env:"UNIFI_PASS,required"`
Host string `env:"UNIFI_HOST,notEmpty"`
User string `env:"UNIFI_USER,notEmpty"`
Password string `env:"UNIFI_PASS,notEmpty"`
SkipTLSVerify bool `env:"UNIFI_SKIP_TLS_VERIFY" envDefault:"false"`
}

0 comments on commit 415bd44

Please sign in to comment.