mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* inline mattermost-govet * fix style issues * simplify the openApiSync spec test * README.md tweaks * fix missing licenses * simplify README.md * trigger server-ci on tools/mattermost-govet/** * Apply https://github.com/mattermost/mattermost-govet/commit/470cf78253f0aa85a4f4b5b50002682bf823e729 --------- Co-authored-by: Mattermost Build <[email protected]>
45 lines
1.8 KiB
Go
45 lines
1.8 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
const (
|
|
SERVICE_SETTINGS_DEFAULT_SITE_URL = "http://localhost:8065"
|
|
)
|
|
|
|
type ServiceSettings struct {
|
|
SiteURL *string `access:"environment,authentication,write_restrictable"`
|
|
WebsocketURL *string `access:"write_restrictable,cloud_restrictable"`
|
|
LicenseFileLocation *string `access:"write_restrictable,cloud_restrictable"`
|
|
ListenAddress *string `access:"environment,write_restrictable,cloud_restrictable"` // telemetry: none
|
|
TLSStrictTransport *bool `access:"write_restrictable,cloud_restrictable"`
|
|
TLSStrictTransportMaxAge *int64 `access:"write_restrictable,cloud_restrictable"` // telemetry: none
|
|
TLSOverwriteCiphers []string `access:"write_restrictable,cloud_restrictable"`
|
|
TrustedProxyIPHeader []string `access:"write_restrictable,cloud_restrictable"` // telemetry: none
|
|
|
|
}
|
|
|
|
type GlobalRelayMessageExportSettings struct {
|
|
CustomerType *string `access:"compliance"` // must be either A9 or A10, dictates SMTP server url
|
|
SmtpUsername string `access:"compliance"`
|
|
SMTPServerTimeout *int `access:"compliance"`
|
|
}
|
|
|
|
type MessageExportSettings struct {
|
|
ExportFromTimestamp *int64 `access:"compliance"`
|
|
BatchSize *int `access:"compliance"`
|
|
|
|
// formatter-specific settings - these are only expected to be non-nil if ExportFormat is set to the associated format
|
|
GlobalRelaySettings *GlobalRelayMessageExportSettings `access:"compliance"`
|
|
}
|
|
|
|
type CloudSettings struct {
|
|
CWSUrl *string `access:"environment,write_restrictable"`
|
|
}
|
|
|
|
type Config struct {
|
|
ServiceSettings ServiceSettings
|
|
MessageExportSettings MessageExportSettings
|
|
CloudSettings CloudSettings
|
|
}
|