ejabberd.yml 3.0 KB

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