dendrite/server/templates/dendrite.yaml.j2
changeset 238 bdbc88cb5078
parent 229 7e3bf48e516a
equal deleted inserted replaced
237:c6c11084c802 238:bdbc88cb5078
    36   # this section is populated then you can omit the "database" blocks in all other
    36   # this section is populated then you can omit the "database" blocks in all other
    37   # sections. For monolith deployments using SQLite databases,
    37   # sections. For monolith deployments using SQLite databases,
    38   # you must configure the "database" block for each component instead.
    38   # you must configure the "database" block for each component instead.
    39   database:
    39   database:
    40     connection_string: postgresql://{{dendrite_db_user}}:{{dendrite_db_pass}}@localhost/{{dendrite_db}}?sslmode=disable
    40     connection_string: postgresql://{{dendrite_db_user}}:{{dendrite_db_pass}}@localhost/{{dendrite_db}}?sslmode=disable
    41     max_open_conns: 90
    41     max_open_conns: 25
    42     max_idle_conns: 5
    42     max_idle_conns: 5
    43     conn_max_lifetime: -1
    43     conn_max_lifetime: -1
    44 
    44 
    45   # Configuration for in-memory caches. Caches can often improve performance by
    45   # Configuration for in-memory caches. Caches can often improve performance by
    46   # keeping frequently accessed items (like events, identifiers etc.) in memory
    46   # keeping frequently accessed items (like events, identifiers etc.) in memory
   137       password: metrics
   137       password: metrics
   138 
   138 
   139   # Optional DNS cache. The DNS cache may reduce the load on DNS servers if there
   139   # Optional DNS cache. The DNS cache may reduce the load on DNS servers if there
   140   # is no local caching resolver available for use.
   140   # is no local caching resolver available for use.
   141   dns_cache:
   141   dns_cache:
   142     enabled: false
   142     enabled: true
   143     cache_size: 256
   143     cache_size: 4096
   144     cache_lifetime: "5m" # 5 minutes; https://pkg.go.dev/time@master#ParseDuration
   144     cache_lifetime: "10m" # 10 minutes; https://pkg.go.dev/time@master#ParseDuration
   145 
   145 
   146 # Configuration for the Appservice API.
   146 # Configuration for the Appservice API.
   147 app_service_api:
   147 app_service_api:
   148   # Disable the validation of TLS certificates of appservices. This is
   148   # Disable the validation of TLS certificates of appservices. This is
   149   # not recommended in production since it may allow appservice traffic
   149   # not recommended in production since it may allow appservice traffic