60-modules.yml 3.9 KB

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