feat!: add option to specify the Max Mind license key for the Geolite2 db

This commit is contained in:
Elias Schneider
2024-11-26 20:14:31 +01:00
parent 0b4101ccce
commit fcf08a4d89
10 changed files with 168 additions and 89 deletions

View File

@@ -14,6 +14,8 @@ type EnvConfigSchema struct {
Port string `env:"BACKEND_PORT"`
Host string `env:"HOST"`
EmailTemplatesPath string `env:"EMAIL_TEMPLATES_PATH"`
MaxMindLicenseKey string `env:"MAXMIND_LICENSE_KEY"`
GeoLiteDBPath string `env:"GEOLITE_DB_PATH"`
}
var EnvConfig = &EnvConfigSchema{
@@ -24,6 +26,8 @@ var EnvConfig = &EnvConfigSchema{
Port: "8080",
Host: "localhost",
EmailTemplatesPath: "./email-templates",
MaxMindLicenseKey: "",
GeoLiteDBPath: "data/GeoLite2-City.mmdb",
}
func init() {