feat: add service.ipextractionmethod and service.trustedproxies config options
This commit is contained in:
parent
763d25ca18
commit
26324a740a
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue