Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

76 rivejä
2.9 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  3. SPDX-FileCopyrightText: 2022 Charles Wright
  4. SPDX-FileCopyrightText: 2024 Suguru Hirahara
  5. SPDX-License-Identifier: AGPL-3.0-or-later
  6. #}
  7. # =============================================================================
  8. # This is the official example config for Conduit.
  9. # If you use it for your server, you will need to adjust it to your own needs.
  10. # At the very least, change the server_name field!
  11. # =============================================================================
  12. [global]
  13. # The server_name is the pretty name of this server. It is used as a suffix for user
  14. # and room IDs. Examples: matrix.org, conduit.rs
  15. # The Conduit server needs all /_matrix/ requests to be reachable at
  16. # https://example.com/ on port 443 (client-server) and 8448 (federation).
  17. # If that's not possible for you, you can create /.well-known files to redirect
  18. # requests. See
  19. # https://matrix.org/docs/spec/client_server/latest#get-well-known-matrix-client
  20. # and
  21. # https://matrix.org/docs/spec/server_server/r0.1.4#get-well-known-matrix-server
  22. # for more information
  23. server_name = "{{ matrix_domain }}"
  24. # This is the only directory where Conduit will save its data
  25. database_path = "/var/lib/matrix-conduit/"
  26. database_backend = "rocksdb"
  27. # The port Conduit will be running on. You need to set up a reverse proxy in
  28. # your web server (e.g. apache or nginx), so all requests to /_matrix on port
  29. # 443 and 8448 will be forwarded to the Conduit instance running on this port
  30. # Docker users: Don't change this, you'll need to map an external port to this.
  31. port = {{ matrix_conduit_port_number }}
  32. # Max size for uploads
  33. max_request_size = {{ matrix_conduit_max_request_size }}
  34. # Max number of open files for the RocksDB database
  35. rocksdb_max_open_files = {{ matrix_conduit_rocksdb_max_open_files }}
  36. # Enables registration. If set to false, no users can register on this server.
  37. allow_registration = {{ matrix_conduit_allow_registration | to_json }}
  38. allow_federation = {{ matrix_conduit_allow_federation | to_json }}
  39. # Enable the display name lightning bolt on registration.
  40. enable_lightning_bolt = {{ matrix_conduit_enable_lightning_bolt | to_json }}
  41. trusted_servers = {{ matrix_conduit_trusted_servers | to_json }}
  42. max_concurrent_requests = {{ matrix_conduit_max_concurrent_requests }}
  43. log = "info,state_res=warn,rocket=off,_=off,sled=off"
  44. address = "0.0.0.0"
  45. turn_uris = {{ matrix_conduit_turn_uris | to_json }}
  46. {% if matrix_conduit_turn_secret != '' %}
  47. turn_secret = {{ matrix_conduit_turn_secret | to_json }}
  48. {% endif %}
  49. # If you have your TURN server configured to use a username and password
  50. # you can provide these information too. In this case comment out `turn_secret above`!
  51. {% if matrix_conduit_turn_username != '' or matrix_conduit_turn_password != '' %}
  52. turn_username = {{ matrix_conduit_turn_username | to_json }}
  53. turn_password = {{ matrix_conduit_turn_password | to_json }}
  54. {% endif %}