diff options
author | Naman Jagdish Gala <ngala@gitlab.com> | 2023-11-28 16:35:27 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2023-11-28 16:35:27 +0300 |
commit | 7e9d46766d1926f93bb4a0d6f00d03d122316ad6 (patch) | |
tree | 2c55c6d33ead79a5ac825bfa7388020cd975a616 /internal/config/config.go | |
parent | 8d5e5741ee35577589d95d07d83c213d6d8a6797 (diff) |
Add path in session cookie when namespace is provided in path
Diffstat (limited to 'internal/config/config.go')
-rw-r--r-- | internal/config/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index d2016550..ba227016 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -61,6 +61,8 @@ type General struct { ShowVersion bool CustomHeaders http.Header + + NamespaceInPath bool } // RateLimit config struct @@ -317,6 +319,7 @@ func loadConfig() (*Config, error) { InsecureCiphers: *insecureCiphers, PropagateCorrelationID: *propagateCorrelationID, ShowVersion: *showVersion, + NamespaceInPath: *namespaceInPath, }, RateLimit: RateLimit{ SourceIPLimitPerSecond: *rateLimitSourceIP, @@ -518,6 +521,7 @@ func logFields(config *Config) map[string]any { "sentry-dsn": config.Sentry.DSN, "sentry-environment": config.Sentry.Environment, "version": config.General.ShowVersion, + "namespace-in-path": *namespaceInPath, } } |