feat: add service.ipextractionmethod and service.trustedproxies config options

This commit is contained in:
kolaente 2026-03-20 10:06:22 +01:00 committed by kolaente
parent 763d25ca18
commit 26324a740a
1 changed files with 4 additions and 0 deletions

View File

@ -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")