From 26324a740a73d19748eea3c745c74f91f60cc86b Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 20 Mar 2026 10:06:22 +0100 Subject: [PATCH] feat: add service.ipextractionmethod and service.trustedproxies config options --- pkg/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index 12bccaf3b..b753e6153 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -70,6 +70,8 @@ const ( ServiceEnablePublicTeams Key = `service.enablepublicteams` ServiceBcryptRounds Key = `service.bcryptrounds` ServiceEnableOpenIDTeamUserOnlySearch Key = `service.enableopenidteamusersearch` + ServiceIPExtractionMethod Key = `service.ipextractionmethod` + ServiceTrustedProxies Key = `service.trustedproxies` SentryEnabled Key = `sentry.enabled` SentryDsn Key = `sentry.dsn` @@ -353,6 +355,8 @@ func InitDefaultConfig() { ServiceEnablePublicTeams.setDefault(false) ServiceBcryptRounds.setDefault(11) ServiceEnableOpenIDTeamUserOnlySearch.setDefault(false) + ServiceIPExtractionMethod.setDefault("direct") + ServiceTrustedProxies.setDefault("") // Sentry SentryDsn.setDefault("https://440eedc957d545a795c17bbaf477497c@o1047380.ingest.sentry.io/4504254983634944")