Advertisement
Guest User

ejabberd.yml

a guest
Sep 29th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 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. hosts:
  18. - im.chat.chat
  19.  
  20. loglevel: info
  21.  
  22. certfiles:
  23. - "/opt/ejabberd/bundle.pem"
  24. ## - "/etc/letsencrypt/live/localhost/fullchain.pem"
  25. ## - "/etc/letsencrypt/live/localhost/privkey.pem"
  26.  
  27. ca_file: "/opt/ejabberd/conf/cacert.pem"
  28.  
  29. listen:
  30. -
  31. port: 5222
  32. ip: "::"
  33. module: ejabberd_c2s
  34. max_stanza_size: 262144
  35. shaper: c2s_shaper
  36. access: c2s
  37. starttls_required: true
  38. -
  39. port: 5269
  40. ip: "::"
  41. module: ejabberd_s2s_in
  42. max_stanza_size: 524288
  43. -
  44. port: 5443
  45. ip: "::"
  46. module: ejabberd_http
  47. tls: true
  48. request_handlers:
  49. "/admin": ejabberd_web_admin
  50. "/api": mod_http_api
  51. "/bosh": mod_bosh
  52. "/captcha": ejabberd_captcha
  53. "/upload": mod_http_upload
  54. "/ws": ejabberd_http_ws
  55. "/oauth": ejabberd_oauth
  56. -
  57. port: 5280
  58. ip: "::"
  59. module: ejabberd_http
  60. request_handlers:
  61. "/admin": ejabberd_web_admin
  62. -
  63. port: 1883
  64. ip: "::"
  65. module: mod_mqtt
  66. backlog: 1000
  67.  
  68. s2s_use_starttls: optional
  69.  
  70. acl:
  71. local:
  72. user_regexp: ""
  73. loopback:
  74. ip:
  75. - 127.0.0.0/8
  76. - ::1/128
  77. - ::FFFF:127.0.0.1/128
  78.  
  79. admin:
  80. user:
  81.  
  82. access_rules:
  83. local:
  84. allow: all
  85. c2s:
  86. deny: blocked
  87. allow: all
  88. announce:
  89. allow: admin
  90. configure:
  91. allow: admin
  92. muc_create:
  93. allow: local
  94. pubsub_createnode:
  95. allow: all
  96. register:
  97. allow: admin
  98. trusted_network:
  99. allow: loopback
  100.  
  101. api_permissions:
  102. "console commands":
  103. from:
  104. - ejabberd_ctl
  105. who: all
  106. what: "*"
  107. "admin access":
  108. who:
  109. access:
  110. allow:
  111. acl: loopback
  112. acl: admin
  113. oauth:
  114. scope: "ejabberd:admin"
  115. access:
  116. allow:
  117. acl: loopback
  118. acl: admin
  119. what:
  120. - "*"
  121. - "!stop"
  122. - "!start"
  123. "public commands":
  124. who:
  125. ip: 127.0.0.1/8
  126. what:
  127. - status
  128. - connected_users_number
  129.  
  130. shaper:
  131. normal: 1000
  132. fast: 50000
  133.  
  134. shaper_rules:
  135. max_user_sessions: 10
  136. max_user_offline_messages:
  137. 5000: admin
  138. 100: all
  139. c2s_shaper:
  140. none: admin
  141. normal: all
  142. s2s_shaper: fast
  143.  
  144. max_fsm_queue: 10000
  145.  
  146. acme:
  147. contact: "mailto:admin@monrk"
  148. ca_url: "https://acme-v02.api.letsencrypt.org"
  149.  
  150. modules:
  151. mod_adhoc: {}
  152. mod_admin_extra: {}
  153. mod_announce:
  154. access: announce
  155. mod_avatar: {}
  156. mod_blocking: {}
  157. mod_bosh: {}
  158. mod_caps: {}
  159. mod_carboncopy: {}
  160. mod_client_state: {}
  161. mod_configure: {}
  162. mod_disco: {}
  163. mod_fail2ban: {}
  164. mod_http_api: {}
  165. mod_http_upload:
  166. access: local
  167. max_size: 104857600 # 100 MiB.
  168. file_mode: "0640"
  169. dir_mode: "2750"
  170. docroot: "/var/www/upload/@HOST@"
  171. put_url: https://@HOST@:5443/upload
  172. thumbnail: false
  173. mod_last: {}
  174. mod_mam:
  175. ## Mnesia is limited to 2GB, better to use an SQL backend
  176. ## For small servers SQLite is a good fit and is very easy
  177. ## to configure. Uncomment this when you have SQL configured:
  178. assume_mam_usage: true
  179.  
  180. default_db: odbc
  181. auth_method: sql
  182.  
  183. odbc_type: mysql
  184. odbc_server: 127.0.0.1
  185. odbc_port: 3306 # the default
  186. odbc_database: mydb
  187. odbc_username: userns
  188. odbc_password: pisjdwdwd
  189.  
  190. default: never
  191. mod_mqtt: {}
  192. mod_muc:
  193. access:
  194. - allow
  195. access_admin:
  196. - allow: admin
  197. access_create: muc_create
  198. access_persistent: muc_create
  199. access_mam:
  200. - allow
  201. default_room_options:
  202. allow_subscription: true # enable MucSub
  203. mam: false
  204. mod_muc_admin: {}
  205. mod_offline:
  206. access_max_user_messages: max_user_offline_messages
  207. mod_ping: {}
  208. mod_privacy: {}
  209. mod_private: {}
  210. mod_proxy65:
  211. access: local
  212. max_connections: 5
  213. mod_pubsub:
  214. access_createnode: pubsub_createnode
  215. plugins:
  216. - flat
  217. - pep
  218. force_node_config:
  219. ## Avoid buggy clients to make their bookmarks public
  220. storage:bookmarks:
  221. access_model: whitelist
  222. mod_push: {}
  223. mod_push_keepalive: {}
  224. mod_register:
  225. ## Only accept registration requests from the "trusted"
  226. ## network (see access_rules section above).
  227. ## Think twice before enabling registration from any
  228. ## address. See the Jabber SPAM Manifesto for details:
  229. ## https://github.com/ge0rg/jabber-spam-fighting-manifesto
  230. ip_access: trusted_network
  231. mod_roster:
  232. versioning: true
  233. mod_s2s_dialback: {}
  234. mod_shared_roster: {}
  235. mod_stream_mgmt:
  236. resend_on_timeout: if_offline
  237. mod_vcard: {}
  238. mod_vcard_xupdate: {}
  239. mod_version:
  240. show_os: false
  241.  
  242. ### Local Variables:
  243. ### mode: yaml
  244. ### End:
  245. ### vim: set filetype=yaml tabstop=8
  246.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement