mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-16244] Add Elasticsearch SkipTLSVerification parameter to the config (#11189)
* [MM-16244] Add Elasticsearch SkipTLSVerification parameter to the config * Add SkipTLSVerification config parameter to the diagnostics * Update diagnostics key for consistency Co-Authored-By: George Goldberg <george@gberg.me>
This commit is contained in:
committed by
GitHub
parent
efb9e2fe54
commit
162a2a9903
@@ -2033,6 +2033,7 @@ type ElasticsearchSettings struct {
|
||||
LiveIndexingBatchSize *int `restricted:"true"`
|
||||
BulkIndexingTimeWindowSeconds *int `restricted:"true"`
|
||||
RequestTimeoutSeconds *int `restricted:"true"`
|
||||
SkipTLSVerification *bool `restricted:"true"`
|
||||
Trace *string `restricted:"true"`
|
||||
}
|
||||
|
||||
@@ -2113,6 +2114,10 @@ func (s *ElasticsearchSettings) SetDefaults() {
|
||||
s.RequestTimeoutSeconds = NewInt(ELASTICSEARCH_SETTINGS_DEFAULT_REQUEST_TIMEOUT_SECONDS)
|
||||
}
|
||||
|
||||
if s.SkipTLSVerification == nil {
|
||||
s.SkipTLSVerification = NewBool(false)
|
||||
}
|
||||
|
||||
if s.Trace == nil {
|
||||
s.Trace = NewString("")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user