diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-08-02 13:58:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 13:58:08 +0200 |
commit | 7ec70272d28c6b37f8a412dc577ff27da398d1df (patch) | |
tree | 56f1bfbb219a40bb2113f405fd0bd20b1e6b23f5 /setup/config | |
parent | ca3fa58388aeb8ac84a05fe5e0fab6bfa85f3fc6 (diff) |
Disable NATS Server logging, allow self-signed certificates (#2605)
* Disable NATS Server logs in CI
* Add option to disable TLS validation for NATS
Diffstat (limited to 'setup/config')
-rw-r--r-- | setup/config/config_jetstream.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setup/config/config_jetstream.go b/setup/config/config_jetstream.go index e4cfd4d3..a7827597 100644 --- a/setup/config/config_jetstream.go +++ b/setup/config/config_jetstream.go @@ -17,6 +17,10 @@ type JetStream struct { TopicPrefix string `yaml:"topic_prefix"` // Keep all storage in memory. This is mostly useful for unit tests. InMemory bool `yaml:"in_memory"` + // Disable logging. This is mostly useful for unit tests. + NoLog bool `yaml:"-"` + // Disables TLS validation. This should NOT be used in production + DisableTLSValidation bool `yaml:"disable_tls_validation"` } func (c *JetStream) Prefixed(name string) string { @@ -32,6 +36,8 @@ func (c *JetStream) Defaults(generate bool) { c.TopicPrefix = "Dendrite" if generate { c.StoragePath = Path("./") + c.NoLog = true + c.DisableTLSValidation = true } } |