Skip to content

Commit

Permalink
Merge pull request #15 from onedr0p/unifi-required
Browse files Browse the repository at this point in the history
fix: make unifi env vars required
  • Loading branch information
kashalls authored May 24, 2024
2 parents 3983143 + 415bd44 commit 2d35841
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"`
User string `env:"UNIFI_USER" envDefault:"external-dns-unifi"`
Password string `env:"UNIFI_PASS" envDefault:"V3ryS3cur3!!"`
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 2d35841

Please sign in to comment.