migrating_config.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # Migrating from old-style config to YAML-style config
  2. # In this document, the line 'aaaaa: bbb.ccc.ddd' means
  3. # "To configure things as they were before, substitute
  4. # 'bbb.ccc.ddd' with the value set for bbb.ccc.ddd in the
  5. # old config"
  6. # Some config options no longer exist:
  7. #
  8. # * Three templating options:
  9. # - email.invite_template
  10. # - email.template
  11. # - verify_response_template
  12. #
  13. # To migrate these settings, create the following file structure somewhere:
  14. #
  15. # root_template_dir:
  16. # default:
  17. # invite_template.eml
  18. # (the file that 'email.invite_template' pointed to)
  19. # verification_template.eml
  20. # (the file that 'email.template' pointed to)
  21. # verify_response_template.html
  22. # (the file that 'verify_response_template' pointed to)
  23. #
  24. # Then set 'templates.root_directory' to the path of 'root_template_dir'
  25. # and 'templates.default_brand' to 'default'
  26. #
  27. # * email.subject
  28. # - Removed because it doesn't get used anywhere in the code
  29. # - If it was added in the future it would be 'email.contents.validation_subject'
  30. ## General ##
  31. server_name: server.name
  32. logging:
  33. log_path: log.path
  34. log_level: log.level
  35. pid_file: pidfile.path
  36. terms_file: terms.path
  37. address_lookup_limit: address_lookup_limit
  38. enable_v1_associations: enable_v1_associations
  39. delete_tokens_on_bind: delete_tokens_on_bind
  40. templates:
  41. root_directory: templates.path
  42. default_brand: brand.default
  43. prometheus:
  44. enabled: [prometheus_port is present]
  45. bind_address: prometheus_addr
  46. port: prometheus_port
  47. sentry:
  48. enabled: [sentry_dsn is present]
  49. dsn: sentry_dsn
  50. ip_filtering:
  51. blacklist:
  52. - AAAAAA -|
  53. - BBBBBB |- values in ip.blacklist list
  54. - CCCCCC -|
  55. whitelist:
  56. - AAAAAA -|
  57. - BBBBBB |- values in ip.whitelist list
  58. - CCCCCC -|
  59. ## Database ##
  60. database_path: db.file
  61. ## Crypto ##
  62. ed25519_signing_key: ed25519.signingkey
  63. ## SMS ##
  64. sms:
  65. SMS_template: bodytemplate
  66. openmarket_SMS_API:
  67. username: username
  68. password: password
  69. sms_originator:
  70. country_code:
  71. - 1:
  72. - AAAAAA -|
  73. - BBBBBB |- values in originators.1 list
  74. - CCCCCC -|
  75. - 44:
  76. - AAAAAA -|
  77. - BBBBBB |- values in originators.44 list
  78. - CCCCCC -|
  79. default: originators.default
  80. country_code_blacklist:
  81. - 44 [smsrule.44 = reject]
  82. - 33 [smsrule.33 = reject]
  83. - 276 [smsrule.276 = reject]
  84. ## Emails ##
  85. email:
  86. SMTP:
  87. server: email.smtphost
  88. port: email.smtpport
  89. username: email.smtpusername
  90. password: email.smtppassword
  91. tls_mode: email.tlsmode
  92. host_name: email.hostname
  93. contents:
  94. sender: email.from
  95. room_invite_subject: email.invite.subject
  96. space_invite_subject: email.invite.subject_space
  97. default_matrix_client: email.default_web_client_location
  98. obfuscation_amounts:
  99. username: email.third_party_invite_username_obfuscate_characters
  100. domain: email.third_party_invite_domain_obfuscate_characters
  101. ## HTTP ##
  102. server_base_url: client_http_base
  103. http_servers:
  104. client_api:
  105. bind_address: clientapi.http.bind_address
  106. port: clientapi.http.port
  107. replication_api:
  108. bind_address: replication.https.bind_address
  109. port: replication.https.port
  110. cert_file: replication.https.certfile
  111. ca_cert: replication.https.cacert
  112. internal_api:
  113. enabled: [internalapi.http.port is not empty string]
  114. bind_address: internalapi.http.bind_address
  115. port: internalapi.http.port
  116. obey_x_forwarded_for: obey_x_forwarded_for
  117. verify_homeserver_certs: federation.verifycerts