ejabberd.yml 3.3 KB

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