1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-14 18:47:30 +00:00

feat: configurable local ipv6 ranges for audit log (#657)

This commit is contained in:
Kyle Mendell
2025-06-19 12:56:27 -05:00
committed by GitHub
parent ac5a121f66
commit d5485238b8
3 changed files with 301 additions and 3 deletions

View File

@@ -37,6 +37,7 @@ type EnvConfigSchema struct {
MaxMindLicenseKey string `env:"MAXMIND_LICENSE_KEY"`
GeoLiteDBPath string `env:"GEOLITE_DB_PATH"`
GeoLiteDBUrl string `env:"GEOLITE_DB_URL"`
LocalIPv6Ranges string `env:"LOCAL_IPV6_RANGES"`
UiConfigDisabled bool `env:"UI_CONFIG_DISABLED"`
MetricsEnabled bool `env:"METRICS_ENABLED"`
TracingEnabled bool `env:"TRACING_ENABLED"`
@@ -58,6 +59,7 @@ var EnvConfig = &EnvConfigSchema{
MaxMindLicenseKey: "",
GeoLiteDBPath: "data/GeoLite2-City.mmdb",
GeoLiteDBUrl: MaxMindGeoLiteCityUrl,
LocalIPv6Ranges: "",
UiConfigDisabled: false,
MetricsEnabled: false,
TracingEnabled: false,