60-modules.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. ###. =======
  2. ###' MODULES
  3. ##
  4. ## Modules enabled in all ejabberd virtual hosts.
  5. ##
  6. modules:
  7. mod_adhoc: {}
  8. mod_admin_extra: {}
  9. mod_announce: # recommends mod_adhoc
  10. access: announce
  11. mod_avatar: {}
  12. # mod_block_strangers: {} # requires captcha
  13. mod_blocking: {} # requires mod_privacy
  14. mod_bosh: {}
  15. mod_caps: {}
  16. mod_carboncopy: {}
  17. mod_client_state: {}
  18. mod_configure: {} # requires mod_adhoc
  19. mod_conversejs:
  20. # websocket_url: "wss://vc.example.com:5443/ws"
  21. websocket_url: WS_URL #macro defined in ~/env.yml
  22. ## mod_delegation: {} # for xep0356
  23. mod_disco:
  24. server_info:
  25. #XEP-0157: Contact Addresses for XMPP Services
  26. -
  27. modules: all
  28. name: "abuse-addresses"
  29. urls:
  30. - "data:,Please%20contact%20the%20RFC%202142%20abuse%20address%20of%20this%20domain."
  31. mod_fail2ban: {}
  32. # mod_stun_disco: {} #--> see 50-stun-turn.yml
  33. # mod_http_api: {}
  34. mod_http_fileserver:
  35. default_content_type: "text/html"
  36. docroot: "/home/ejabberd/www/"
  37. directory_indices:
  38. - "index.html"
  39. default_content_type: "text/html"
  40. content_types:
  41. .css: text/css
  42. .gif: image/gif
  43. .html: text/html
  44. .jpeg: image/jpeg
  45. .jpg: image/jpeg
  46. .png: image/png
  47. .svg: image/svg+xml
  48. .txt: text/plain
  49. .xml: application/xml
  50. ## docroot: "/var/www"
  51. ## accesslog: "/home/ejabberd/logs/access.log"
  52. #mod_http_api: {}
  53. mod_http_upload:
  54. # put_url: "https://@HOST@:5443/upload"
  55. put_url: PUT_URL #macro defined in ~/env.yml
  56. thumbnail: false # otherwise needs ejabberd to be compiled with libgd support
  57. max_size: 524288 # 5MB
  58. custom_headers:
  59. # "Access-Control-Allow-Origin": "https://@HOST@"
  60. "Access-Control-Allow-Origin": ACL_ORIGIN #macro defined in ~/env.yml
  61. "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
  62. "Access-Control-Allow-Headers": "Content-Type"
  63. mod_http_upload_quota:
  64. max_days: 7
  65. mod_last: {}
  66. ## XEP-0313: Message Archive Management
  67. ## You might want to setup a SQL backend for MAM because the mnesia database is
  68. ## limited to 2GB which might be exceeded on large servers
  69. ## mod_mam: {} # for xep0313, mnesia is limited to 2GB, better use an SQL backend
  70. mod_mam:
  71. assume_mam_usage: true
  72. default: always
  73. mod_muc:
  74. access:
  75. - allow
  76. access_admin:
  77. - allow: admin
  78. access_create: muc_create
  79. access_persistent: muc_create
  80. access_mam:
  81. - allow
  82. default_room_options:
  83. mam: true
  84. persistent: true
  85. public: false
  86. public_list: false
  87. allow_subscription: true # enable MucSub
  88. ## mod_muc_log: {}
  89. ## mod_multicast: {}
  90. mod_offline:
  91. access_max_user_messages: max_user_offline_messages
  92. mod_ping: {}
  93. ## mod_pres_counter:
  94. ## count: 5
  95. ## interval: 60
  96. mod_privacy: {}
  97. mod_private: {}
  98. mod_proxy65:
  99. access: local
  100. max_connections: 5
  101. mod_pubsub:
  102. access_createnode: pubsub_createnode
  103. ignore_pep_from_offline: true
  104. last_item_cache: false
  105. plugins:
  106. - "flat"
  107. - "pep"
  108. force_node_config:
  109. "eu.siacs.conversations.axolotl.*":
  110. access_model: open
  111. "storage:bookmarks":
  112. access_model: whitelist
  113. mod_push: {}
  114. mod_push_keepalive: {}
  115. #mod_register:
  116. ##
  117. ## Protect In-Band account registrations with CAPTCHA.
  118. ##
  119. ## captcha_protected: true
  120. ##
  121. ## Set the minimum informational entropy for passwords.
  122. ##
  123. ## password_strength: 32
  124. ##
  125. ## After successful registration, the user receives
  126. ## a message with this subject and body.
  127. ##
  128. # welcome_message:
  129. # subject: "Welcome!"
  130. # body: |-
  131. # Hi.
  132. # Welcome to this XMPP server.
  133. ##
  134. ## When a user registers, send a notification to
  135. ## these XMPP accounts.
  136. ##
  137. ## registration_watchers:
  138. ## - "admin1@example.org"
  139. ##
  140. ## Only clients in the server machine can register accounts
  141. ##
  142. # ip_access: trusted_network
  143. ##
  144. ## Local c2s or remote s2s users cannot register accounts
  145. ##
  146. ## access_from: deny
  147. # access: register
  148. # mod_roster: {}
  149. mod_s2s_dialback: {}
  150. mod_roster:
  151. versioning: true
  152. mod_shared_roster: {}
  153. ## mod_sic: {}
  154. ## mod_stats: {}
  155. mod_time: {}
  156. mod_vcard:
  157. search: false
  158. mod_vcard_xupdate: {}
  159. mod_version:
  160. show_os: false
  161. mod_stream_mgmt:
  162. resend_on_timeout: if_offline