Advertisement
Guest User

Untitled

a guest
Dec 24th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.12 KB | None | 0 0
  1. # The config file format version
  2. # This is used by dendrite to tell if it understands the config format.
  3. # This will change if the structure of the config file changes or if the meaning
  4. # of an existing config key changes.
  5. version: 0
  6.  
  7. # The matrix specific config
  8. matrix:
  9.    # The name of the server. This is usually the domain name, e.g 'matrix.org', 'localhost'.
  10.     server_name: "example.com"
  11.     # The path to the PEM formatted matrix private key.
  12.     private_key: "matrix_key.pem"
  13.     # The x509 certificates used by the federation listeners for this server
  14.     federation_certificates: ["server.crt"]
  15.     # The list of identity servers trusted to verify third party identifiers by this server.
  16.     # Defaults to no trusted servers.
  17.     trusted_third_party_id_servers:
  18.      - vector.im
  19.       - matrix.org
  20.       - riot.im
  21.  
  22. # The media repository config
  23. media:
  24.    # The base path to where the media files will be stored. May be relative or absolute.
  25.     base_path: /var/dendrite/media
  26.  
  27.     # The maximum file size in bytes that is allowed to be stored on this server.
  28.     # Note: if max_file_size_bytes is set to 0, the size is unlimited.
  29.     # Note: if max_file_size_bytes is not set, it will default to 10485760 (10MB)
  30.     max_file_size_bytes: 10485760
  31.  
  32.     # Whether to dynamically generate thumbnails on-the-fly if the requested resolution is not already generated
  33.     # NOTE: This is a possible denial-of-service attack vector - use at your own risk
  34.     dynamic_thumbnails: false
  35.  
  36.     # A list of thumbnail sizes to be pre-generated for downloaded remote / uploaded content
  37.     # method is one of crop or scale. If omitted, it will default to scale.
  38.     # crop scales to fill the requested dimensions and crops the excess.
  39.     # scale scales to fit the requested dimensions and one dimension may be smaller than requested.
  40.     thumbnail_sizes:
  41.       - width: 32
  42.         height: 32
  43.         method: crop
  44.       - width: 96
  45.         height: 96
  46.         method: crop
  47.       - width: 320
  48.         height: 240
  49.         method: scale
  50.       - width: 640
  51.         height: 480
  52.         method: scale
  53.       - width: 800
  54.         height: 600
  55.         method: scale
  56.  
  57. # The config for the TURN server
  58. turn:
  59.    # Whether or not guests can request TURN credentials
  60.     turn_allow_guests: true
  61.     # How long the authorization should last
  62.     turn_user_lifetime: "1h"
  63.     # The list of TURN URIs to pass to clients
  64.     turn_uris: []
  65.  
  66.     # Authorization via Shared Secret
  67.     # The shared secret from coturn
  68.     turn_shared_secret: "<SECRET STRING GOES HERE>"
  69.  
  70.     # Authorization via Static Username & Password
  71.     # Hardcoded Username and Password
  72.     turn_username: ""
  73.     turn_password: ""
  74.  
  75. # The config for communicating with kafka
  76. kafka:
  77.    # Where the kafka servers are running.
  78.     addresses: ["kafka:9092"]
  79.     # Whether to use naffka instead of kafka.
  80.     # Naffka can only be used when running dendrite as a single monolithic server.
  81.     # Kafka can be used both with a monolithic server and when running the
  82.     # components as separate servers.
  83.     # If enabled database.naffka must also be specified.
  84.     use_naffka: false
  85.     # The names of the kafka topics to use.
  86.     topics:
  87.         output_room_event: roomserverOutput
  88.         output_client_data: clientapiOutput
  89.         user_updates: userUpdates
  90.  
  91. # The postgres connection configs for connecting to the databases e.g a postgres:// URI
  92. database:
  93.     account: "postgres://dendrite:itsasecret@postgres/dendrite_account?sslmode=disable"
  94.     device: "postgres://dendrite:itsasecret@postgres/dendrite_device?sslmode=disable"
  95.     media_api: "postgres://dendrite:itsasecret@postgres/dendrite_mediaapi?sslmode=disable"
  96.     sync_api: "postgres://dendrite:itsasecret@postgres/dendrite_syncapi?sslmode=disable"
  97.     room_server: "postgres://dendrite:itsasecret@postgres/dendrite_roomserver?sslmode=disable"
  98.     server_key: "postgres://dendrite:itsasecret@postgres/dendrite_serverkey?sslmode=disable"
  99.     federation_sender: "postgres://dendrite:itsasecret@postgres/dendrite_federationsender?sslmode=disable"
  100.     public_rooms_api: "postgres://dendrite:itsasecret@postgres/dendrite_publicroomsapi?sslmode=disable"
  101.     # If using naffka you need to specify a naffka database
  102.     # naffka: "postgres://dendrite:itsasecret@postgres/dendrite_naffka?sslmode=disable"
  103.  
  104. # The TCP host:port pairs to bind the internal HTTP APIs to.
  105. # These shouldn't be exposed to the public internet.
  106. # These aren't needed when running dendrite as a monolithic server.
  107. listen:
  108.     room_server: "room_server:7770"
  109.     client_api: "client_api:7771"
  110.     federation_api: "federation_api:7772"
  111.     sync_api: "sync_api:7773"
  112.     media_api: "media_api:7774"
  113.     public_rooms_api: "public_rooms_api:7775"
  114.     federation_sender: "federation_sender:7776"
  115.  
  116. # The configuration for tracing the dendrite components.
  117. tracing:
  118.    # Config for the jaeger opentracing reporter.
  119.     # See https://godoc.org/github.com/uber/jaeger-client-go/config#Configuration
  120.     # for documtation.
  121.     jaeger:
  122.         disabled: true
  123.  
  124. # A list of application service config files to use
  125. application_services:
  126.     config_files: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement