ejabberd.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ###
  2. ### ejabberd configuration file
  3. ###
  4. ### The parameters used in this configuration file are explained at
  5. ###
  6. ### https://docs.ejabberd.im/admin/configuration
  7. ###
  8. include_config_file:
  9. - /home/ejabberd/conf/conf.d/10-macros.yml
  10. - /home/ejabberd/conf/conf.d/15-log.yml
  11. - /home/ejabberd/conf/conf.d/16-shaper.yml
  12. - /home/ejabberd/conf/conf.d/20-hosts.yml
  13. - /home/ejabberd/conf/conf.d/30-tls.yml
  14. - /home/ejabberd/conf/conf.d/50-stun-turn.yml
  15. listen:
  16. -
  17. port: 5222
  18. module: ejabberd_c2s
  19. max_stanza_size: 262144
  20. shaper: c2s_shaper
  21. access: c2s
  22. starttls_required: true
  23. -
  24. port: 5269
  25. module: ejabberd_s2s_in
  26. max_stanza_size: 524288
  27. -
  28. port: 5443
  29. ip: "::"
  30. module: ejabberd_http
  31. tls: true
  32. request_handlers:
  33. # "/admin": ejabberd_web_admin
  34. # "/api": mod_http_api
  35. "/bosh": mod_bosh
  36. # "/captcha": ejabberd_captcha
  37. "/upload": mod_http_upload
  38. "/ws": ejabberd_http_ws
  39. # "/oauth": ejabberd_oauth
  40. -
  41. port: 5280
  42. ip: "::"
  43. module: ejabberd_http
  44. request_handlers:
  45. "/admin": ejabberd_web_admin
  46. acl:
  47. local:
  48. user_regexp: ""
  49. loopback:
  50. ip:
  51. - 127.0.0.0/8
  52. - ::1/128
  53. - ::FFFF:127.0.0.1/128
  54. admin:
  55. user:
  56. - "admin@localhost"
  57. access_rules:
  58. local:
  59. allow: local
  60. c2s:
  61. deny: blocked
  62. allow: all
  63. announce:
  64. allow: admin
  65. configure:
  66. allow: admin
  67. muc_create:
  68. allow: local
  69. pubsub_createnode:
  70. allow: local
  71. trusted_network:
  72. allow: loopback
  73. modules:
  74. mod_adhoc: {}
  75. # mod_admin_extra: {}
  76. mod_announce:
  77. access: announce
  78. mod_avatar: {}
  79. mod_blocking: {}
  80. mod_bosh: {}
  81. mod_caps: {}
  82. mod_carboncopy: {}
  83. mod_client_state: {}
  84. mod_configure: {}
  85. mod_disco: {}
  86. mod_fail2ban: {}
  87. mod_http_api: {}
  88. mod_http_upload:
  89. put_url: https://@HOST@:5443/upload
  90. mod_last: {}
  91. mod_mam:
  92. ## Mnesia is limited to 2GB, better to use an SQL backend
  93. ## For small servers SQLite is a good fit and is very easy
  94. ## to configure. Uncomment this when you have SQL configured:
  95. ## db_type: sql
  96. assume_mam_usage: true
  97. default: never
  98. # mod_mqtt: {}
  99. mod_muc:
  100. access:
  101. - allow
  102. access_admin:
  103. - allow: admin
  104. access_create: muc_create
  105. access_persistent: muc_create
  106. access_mam:
  107. - allow
  108. default_room_options:
  109. allow_subscription: true # enable MucSub
  110. mam: false
  111. mod_muc_admin: {}
  112. mod_offline:
  113. access_max_user_messages: max_user_offline_messages
  114. mod_ping: {}
  115. mod_privacy: {}
  116. mod_private: {}
  117. mod_proxy65:
  118. access: local
  119. max_connections: 5
  120. mod_pubsub:
  121. access_createnode: pubsub_createnode
  122. plugins:
  123. - flat
  124. - pep
  125. force_node_config:
  126. ## Avoid buggy clients to make their bookmarks public
  127. storage:bookmarks:
  128. access_model: whitelist
  129. mod_push: {}
  130. mod_push_keepalive: {}
  131. mod_roster:
  132. versioning: true
  133. # mod_sip: {}
  134. mod_s2s_dialback: {}
  135. mod_shared_roster: {}
  136. mod_stream_mgmt:
  137. resend_on_timeout: if_offline
  138. mod_vcard: {}
  139. mod_vcard_xupdate: {}
  140. mod_version:
  141. show_os: false
  142. ### Local Variables:
  143. ### mode: yaml
  144. ### End:
  145. ### vim: set filetype=yaml tabstop=8