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. docroot: "/var/www/"
  36. directory_indices:
  37. - "index.html"
  38. default_content_type: "text/html"
  39. content_types:
  40. .css: text/css
  41. .gif: image/gif
  42. .html: text/html
  43. .jpeg: image/jpeg
  44. .jpg: image/jpeg
  45. .png: image/png
  46. .svg: image/svg+xml
  47. .txt: text/plain
  48. .xml: application/xml
  49. ## docroot: "/var/www"
  50. ## accesslog: "/home/ejabberd/logs/access.log"
  51. #mod_http_api: {}
  52. mod_http_upload:
  53. # put_url: "https://@HOST@:5443/upload"
  54. put_url: PUT_URL #macro defined in ~/env.yml
  55. thumbnail: false # otherwise needs ejabberd to be compiled with libgd support
  56. max_size: 524288 # 5MB
  57. custom_headers:
  58. # "Access-Control-Allow-Origin": "https://@HOST@"
  59. "Access-Control-Allow-Origin": ACL_ORIGIN #macro defined in ~/env.yml
  60. "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
  61. "Access-Control-Allow-Headers": "Content-Type"
  62. mod_http_upload_quota:
  63. max_days: 7
  64. mod_last: {}
  65. ## XEP-0313: Message Archive Management
  66. ## You might want to setup a SQL backend for MAM because the mnesia database is
  67. ## limited to 2GB which might be exceeded on large servers
  68. ## mod_mam: {} # for xep0313, mnesia is limited to 2GB, better use an SQL backend
  69. mod_mam:
  70. assume_mam_usage: true
  71. default: always
  72. mod_muc:
  73. access:
  74. - allow
  75. access_admin:
  76. - allow: admin
  77. access_create: muc_create
  78. access_persistent: muc_create
  79. access_mam:
  80. - allow
  81. default_room_options:
  82. mam: true
  83. persistent: true
  84. public: false
  85. public_list: false
  86. allow_subscription: true # enable MucSub
  87. ## mod_muc_log: {}
  88. ## mod_multicast: {}
  89. mod_offline:
  90. access_max_user_messages: max_user_offline_messages
  91. mod_ping: {}
  92. ## mod_pres_counter:
  93. ## count: 5
  94. ## interval: 60
  95. mod_privacy: {}
  96. mod_private: {}
  97. mod_proxy65:
  98. access: local
  99. max_connections: 5
  100. mod_pubsub:
  101. access_createnode: pubsub_createnode
  102. ignore_pep_from_offline: true
  103. last_item_cache: false
  104. plugins:
  105. - "flat"
  106. - "pep"
  107. force_node_config:
  108. "eu.siacs.conversations.axolotl.*":
  109. access_model: open
  110. "storage:bookmarks":
  111. access_model: whitelist
  112. mod_push: {}
  113. mod_push_keepalive: {}
  114. #mod_register:
  115. ##
  116. ## Protect In-Band account registrations with CAPTCHA.
  117. ##
  118. ## captcha_protected: true
  119. ##
  120. ## Set the minimum informational entropy for passwords.
  121. ##
  122. ## password_strength: 32
  123. ##
  124. ## After successful registration, the user receives
  125. ## a message with this subject and body.
  126. ##
  127. # welcome_message:
  128. # subject: "Welcome!"
  129. # body: |-
  130. # Hi.
  131. # Welcome to this XMPP server.
  132. ##
  133. ## When a user registers, send a notification to
  134. ## these XMPP accounts.
  135. ##
  136. ## registration_watchers:
  137. ## - "admin1@example.org"
  138. ##
  139. ## Only clients in the server machine can register accounts
  140. ##
  141. # ip_access: trusted_network
  142. ##
  143. ## Local c2s or remote s2s users cannot register accounts
  144. ##
  145. ## access_from: deny
  146. # access: register
  147. # mod_roster: {}
  148. mod_s2s_dialback: {}
  149. mod_roster:
  150. versioning: true
  151. mod_shared_roster: {}
  152. ## mod_sic: {}
  153. ## mod_stats: {}
  154. mod_time: {}
  155. mod_vcard:
  156. search: false
  157. mod_vcard_xupdate: {}
  158. mod_version:
  159. show_os: false
  160. mod_stream_mgmt:
  161. resend_on_timeout: if_offline