60-modules.yml 4.0 KB

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