ejabberd-updated.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. s2s_use_starttls: optional
  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. shaper:
  74. normal:
  75. rate: 3000
  76. burst_size: 20000
  77. fast: 100000
  78. shaper_rules:
  79. max_user_sessions: 10
  80. max_user_offline_messages:
  81. 5000: admin
  82. 100: all
  83. c2s_shaper:
  84. none: admin
  85. normal: all
  86. s2s_shaper: fast
  87. modules:
  88. mod_adhoc: {}
  89. # mod_admin_extra: {}
  90. mod_announce:
  91. access: announce
  92. mod_avatar: {}
  93. mod_blocking: {}
  94. mod_bosh: {}
  95. mod_caps: {}
  96. mod_carboncopy: {}
  97. mod_client_state: {}
  98. mod_configure: {}
  99. mod_disco: {}
  100. mod_fail2ban: {}
  101. mod_http_api: {}
  102. mod_http_upload:
  103. put_url: https://@HOST@:5443/upload
  104. mod_last: {}
  105. mod_mam:
  106. ## Mnesia is limited to 2GB, better to use an SQL backend
  107. ## For small servers SQLite is a good fit and is very easy
  108. ## to configure. Uncomment this when you have SQL configured:
  109. ## db_type: sql
  110. assume_mam_usage: true
  111. default: never
  112. # mod_mqtt: {}
  113. mod_muc:
  114. access:
  115. - allow
  116. access_admin:
  117. - allow: admin
  118. access_create: muc_create
  119. access_persistent: muc_create
  120. access_mam:
  121. - allow
  122. default_room_options:
  123. allow_subscription: true # enable MucSub
  124. mam: false
  125. mod_muc_admin: {}
  126. mod_offline:
  127. access_max_user_messages: max_user_offline_messages
  128. mod_ping: {}
  129. mod_privacy: {}
  130. mod_private: {}
  131. mod_proxy65:
  132. access: local
  133. max_connections: 5
  134. mod_pubsub:
  135. access_createnode: pubsub_createnode
  136. plugins:
  137. - flat
  138. - pep
  139. force_node_config:
  140. ## Avoid buggy clients to make their bookmarks public
  141. storage:bookmarks:
  142. access_model: whitelist
  143. mod_push: {}
  144. mod_push_keepalive: {}
  145. mod_roster:
  146. versioning: true
  147. # mod_sip: {}
  148. mod_s2s_dialback: {}
  149. mod_shared_roster: {}
  150. mod_stream_mgmt:
  151. resend_on_timeout: if_offline
  152. mod_vcard: {}
  153. mod_vcard_xupdate: {}
  154. mod_version:
  155. show_os: false
  156. ### Local Variables:
  157. ### mode: yaml
  158. ### End:
  159. ### vim: set filetype=yaml tabstop=8