mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Tweaks to config
This commit is contained in:
parent
c662adeb29
commit
d03a066d4b
|
|
@ -27,7 +27,7 @@ type ClientAPI struct {
|
||||||
// This Home Server's ReCAPTCHA private key.
|
// This Home Server's ReCAPTCHA private key.
|
||||||
RecaptchaPrivateKey string `yaml:"recaptcha_private_key"`
|
RecaptchaPrivateKey string `yaml:"recaptcha_private_key"`
|
||||||
// Secret used to bypass the captcha registration entirely
|
// Secret used to bypass the captcha registration entirely
|
||||||
RecaptchaBypassSecret string `yaml:"captcha_bypass_secret"`
|
RecaptchaBypassSecret string `yaml:"recaptcha_bypass_secret"`
|
||||||
// HTTP API endpoint used to verify whether the captcha response
|
// HTTP API endpoint used to verify whether the captcha response
|
||||||
// was successful
|
// was successful
|
||||||
RecaptchaSiteVerifyAPI string `yaml:"recaptcha_siteverify_api"`
|
RecaptchaSiteVerifyAPI string `yaml:"recaptcha_siteverify_api"`
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ type Global struct {
|
||||||
|
|
||||||
// An arbitrary string used to uniquely identify the PrivateKey. Must start with the
|
// An arbitrary string used to uniquely identify the PrivateKey. Must start with the
|
||||||
// prefix "ed25519:".
|
// prefix "ed25519:".
|
||||||
KeyID gomatrixserverlib.KeyID `yaml:"-"`
|
KeyID gomatrixserverlib.KeyID `yaml:"key_id"`
|
||||||
|
|
||||||
// How long a remote server can cache our server key for before requesting it again.
|
// How long a remote server can cache our server key for before requesting it again.
|
||||||
// Increasing this number will reduce the number of requests made by remote servers
|
// Increasing this number will reduce the number of requests made by remote servers
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ const (
|
||||||
type Kafka struct {
|
type Kafka struct {
|
||||||
// A list of kafka addresses to connect to.
|
// A list of kafka addresses to connect to.
|
||||||
Addresses []string `yaml:"addresses"`
|
Addresses []string `yaml:"addresses"`
|
||||||
|
// The prefix to use for Kafka topic names for this homeserver - really only
|
||||||
|
// useful if running more than one Dendrite on the same Kafka deployment.
|
||||||
|
TopicPrefix string `yaml:"topic_prefix"`
|
||||||
// Whether to use naffka instead of kafka.
|
// Whether to use naffka instead of kafka.
|
||||||
// Naffka can only be used when running dendrite as a single monolithic server.
|
// Naffka can only be used when running dendrite as a single monolithic server.
|
||||||
// Kafka can be used both with a monolithic server and when running the
|
// Kafka can be used both with a monolithic server and when running the
|
||||||
|
|
@ -21,9 +24,6 @@ type Kafka struct {
|
||||||
UseNaffka bool `yaml:"use_naffka"`
|
UseNaffka bool `yaml:"use_naffka"`
|
||||||
// The Naffka database is used internally by the naffka library, if used.
|
// The Naffka database is used internally by the naffka library, if used.
|
||||||
Database DatabaseOptions `yaml:"naffka_database"`
|
Database DatabaseOptions `yaml:"naffka_database"`
|
||||||
// The prefix to use for Kafka topic names for this homeserver - really only
|
|
||||||
// useful if running more than one Dendrite on the same Kafka deployment.
|
|
||||||
TopicPrefix string `yaml:"topic_prefix"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (k *Kafka) TopicFor(name string) string {
|
func (k *Kafka) TopicFor(name string) string {
|
||||||
|
|
|
||||||
|
|
@ -37,19 +37,20 @@ version: 1
|
||||||
global:
|
global:
|
||||||
server_name: localhost
|
server_name: localhost
|
||||||
private_key: matrix_key.pem
|
private_key: matrix_key.pem
|
||||||
|
key_id: ed25519:auto
|
||||||
key_validity_period: 168h0m0s
|
key_validity_period: 168h0m0s
|
||||||
trusted_third_party_id_servers:
|
trusted_third_party_id_servers:
|
||||||
- matrix.org
|
- matrix.org
|
||||||
- vector.im
|
- vector.im
|
||||||
kafka:
|
kafka:
|
||||||
addresses: []
|
addresses: []
|
||||||
|
topic_prefix: Dendrite
|
||||||
use_naffka: true
|
use_naffka: true
|
||||||
naffka_database:
|
naffka_database:
|
||||||
connection_string: file:naffka.db
|
connection_string: file:naffka.db
|
||||||
max_open_conns: 100
|
max_open_conns: 100
|
||||||
max_idle_conns: 2
|
max_idle_conns: 2
|
||||||
conn_max_lifetime: -1
|
conn_max_lifetime: -1
|
||||||
topic_prefix: Dendrite
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
basic_auth:
|
basic_auth:
|
||||||
|
|
@ -72,7 +73,7 @@ client_api:
|
||||||
enable_registration_captcha: false
|
enable_registration_captcha: false
|
||||||
recaptcha_public_key: ""
|
recaptcha_public_key: ""
|
||||||
recaptcha_private_key: ""
|
recaptcha_private_key: ""
|
||||||
captcha_bypass_secret: ""
|
recaptcha_bypass_secret: ""
|
||||||
recaptcha_siteverify_api: ""
|
recaptcha_siteverify_api: ""
|
||||||
turn:
|
turn:
|
||||||
turn_user_lifetime: ""
|
turn_user_lifetime: ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue