Guest User

Untitled

a guest
Dec 11th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  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. ### The configuration file is written in YAML.
  9. ### *******************************************************
  10. ### ******* !!! WARNING !!! *******
  11. ### ******* YAML IS INDENTATION SENSITIVE *******
  12. ### ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY *******
  13. ### *******************************************************
  14. ### Refer to http://en.wikipedia.org/wiki/YAML for the brief description.
  15. ###
  16.  
  17. define_macro:
  18. XMPPHOST: localhost
  19. hosts:
  20. - XMPPHOST
  21.  
  22. loglevel: info
  23.  
  24. ## If you already have certificates, list them here
  25. # certfiles:
  26. # - /etc/letsencrypt/live/domain.tld/fullchain.pem
  27. # - /etc/letsencrypt/live/domain.tld/privkey.pem
  28.  
  29. listen:
  30. - port: 5222
  31. ip: "::"
  32. module: ejabberd_c2s
  33. max_stanza_size: 262144
  34. shaper: c2s_shaper
  35. access: c2s
  36. starttls_required: true
  37. - port: 5223
  38. ip: "::"
  39. module: ejabberd_c2s
  40. max_stanza_size: 262144
  41. shaper: c2s_shaper
  42. access: c2s
  43. tls: true
  44. - port: 5269
  45. ip: "::"
  46. module: ejabberd_s2s_in
  47. max_stanza_size: 524288
  48. shaper: s2s_shaper
  49. - port: 5443
  50. ip: "::"
  51. module: ejabberd_http
  52. tls: true
  53. request_handlers:
  54. /admin: ejabberd_web_admin
  55. /api: mod_http_api
  56. /bosh: mod_bosh
  57. /captcha: ejabberd_captcha
  58. /upload: mod_http_upload
  59. /ws: ejabberd_http_ws
  60. - port: 5280
  61. ip: "::"
  62. module: ejabberd_http
  63. request_handlers:
  64. /admin: ejabberd_web_admin
  65. /.well-known/acme-challenge: ejabberd_acme
  66. - port: 5478
  67. ip: "::"
  68. transport: udp
  69. module: ejabberd_stun
  70. use_turn: true
  71. ## The server's public IPv4 address:
  72. # turn_ipv4_address: "203.0.113.3"
  73. ## The server's public IPv6 address:
  74. # turn_ipv6_address: "2001:db8::3"
  75. - port: 1883
  76. ip: "::"
  77. module: mod_mqtt
  78. backlog: 1000
  79.  
  80. s2s_use_starttls: optional
  81.  
  82. acl:
  83. local:
  84. user_regexp: ""
  85. loopback:
  86. ip:
  87. - 127.0.0.0/8
  88. - ::1/128
  89.  
  90. access_rules:
  91. local:
  92. allow: local
  93. c2s:
  94. deny: blocked
  95. allow: all
  96. announce:
  97. allow: admin
  98. configure:
  99. allow: admin
  100. muc_create:
  101. allow: local
  102. pubsub_createnode:
  103. allow: local
  104. trusted_network:
  105. allow: loopback
  106.  
  107. api_permissions:
  108. "console commands":
  109. from: ejabberd_ctl
  110. who: all
  111. what: "*"
  112. "webadmin commands":
  113. from: ejabberd_web_admin
  114. who: admin
  115. what: "*"
  116. "admin access":
  117. who:
  118. access:
  119. allow:
  120. - acl: loopback
  121. - acl: admin
  122. oauth:
  123. scope: "ejabberd:admin"
  124. access:
  125. allow:
  126. - acl: loopback
  127. - acl: admin
  128. what:
  129. - "*"
  130. - "!stop"
  131. - "!start"
  132. "public commands":
  133. who:
  134. ip: 127.0.0.1/8
  135. what:
  136. - status
  137. - connected_users_number
  138.  
  139. shaper:
  140. normal:
  141. rate: 3000
  142. burst_size: 20000
  143. fast: 100000
  144.  
  145. shaper_rules:
  146. max_user_sessions: 10
  147. max_user_offline_messages:
  148. 5000: admin
  149. 100: all
  150. c2s_shaper:
  151. none: admin
  152. normal: all
  153. s2s_shaper: fast
  154.  
  155. modules:
  156. mod_adhoc: {}
  157. mod_admin_extra: {}
  158. mod_announce:
  159. access: announce
  160. mod_avatar: {}
  161. mod_blocking: {}
  162. mod_bosh: {}
  163. mod_caps: {}
  164. mod_carboncopy: {}
  165. mod_client_state: {}
  166. mod_configure: {}
  167. mod_disco: {}
  168. mod_fail2ban: {}
  169. mod_http_api: {}
  170. mod_http_upload:
  171. put_url: https://@HOST@:5443/upload
  172. custom_headers:
  173. "Access-Control-Allow-Origin": "https://@HOST@"
  174. "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
  175. "Access-Control-Allow-Headers": "Content-Type"
  176. mod_last: {}
  177. mod_mam:
  178. ## Mnesia is limited to 2GB, better to use an SQL backend
  179. ## For small servers SQLite is a good fit and is very easy
  180. ## to configure. Uncomment this when you have SQL configured:
  181. ## db_type: sql
  182. assume_mam_usage: true
  183. default: always
  184. mod_mqtt: {}
  185. mod_muc:
  186. access:
  187. - allow
  188. access_admin:
  189. - allow: admin
  190. access_create: muc_create
  191. access_persistent: muc_create
  192. access_mam:
  193. - allow
  194. default_room_options:
  195. mam: true
  196. mod_muc_admin: {}
  197. mod_offline:
  198. access_max_user_messages: max_user_offline_messages
  199. mod_ping: {}
  200. mod_privacy: {}
  201. mod_private: {}
  202. mod_proxy65:
  203. access: local
  204. max_connections: 5
  205. mod_pubsub:
  206. access_createnode: pubsub_createnode
  207. plugins:
  208. - flat
  209. - pep
  210. force_node_config:
  211. ## Avoid buggy clients to make their bookmarks public
  212. storage:bookmarks:
  213. access_model: whitelist
  214. mod_push: {}
  215. mod_push_keepalive: {}
  216. mod_register:
  217. ## Only accept registration requests from the "trusted"
  218. ## network (see access_rules section above).
  219. ## Think twice before enabling registration from any
  220. ## address. See the Jabber SPAM Manifesto for details:
  221. ## https://github.com/ge0rg/jabber-spam-fighting-manifesto
  222. ip_access: trusted_network
  223. mod_roster:
  224. versioning: true
  225. mod_s2s_bidi: {}
  226. mod_s2s_dialback: {}
  227. mod_shared_roster: {}
  228. mod_stream_mgmt:
  229. resend_on_timeout: if_offline
  230. mod_stun_disco: {}
  231. mod_vcard: {}
  232. mod_vcard_xupdate: {}
  233. mod_version:
  234. show_os: false
  235. ### Local Variables:
  236. ### mode: yaml
  237. ### End:
  238. ### vim: set filetype=yaml tabstop=8
  239.  
Advertisement
Add Comment
Please, Sign In to add comment