Guest User

Untitled

a guest
Jan 2nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. ###' LOGGING
  2. loglevel: 5
  3.  
  4. log_rotate_size: 10485760
  5. log_rotate_date: ""
  6. log_rotate_count: 1
  7.  
  8. log_rate_limit: 100
  9.  
  10.  
  11. ###. ===============
  12. ###' NODE PARAMETERS
  13.  
  14. hosts:
  15. - "myhostname.com"
  16.  
  17. ###. ===============
  18. ###' LISTENING PORTS
  19.  
  20. listen:
  21. -
  22. port: 5222
  23. module: ejabberd_c2s
  24. certfile: "/home/centos/ejabberd-16.12/conf/server.pem"
  25. starttls: true
  26. ## To enforce TLS encryption for client connections,
  27. ## use this instead of the "starttls" option:
  28. ## starttls_required: true
  29. ##
  30. ## Custom OpenSSL options
  31. ##
  32. protocol_options:
  33. - "no_sslv3"
  34. ## - "no_tlsv1"
  35. max_stanza_size: 65536
  36. shaper: c2s_shaper
  37. access: c2s
  38. -
  39. port: 5269
  40. module: ejabberd_s2s_in
  41. max_stanza_size: 131072
  42. shaper: s2s_shaper
  43.  
  44. port: 5280
  45. module: ejabberd_http
  46. request_handlers:
  47. "/websocket": ejabberd_http_ws
  48. ## "/pub/archive": mod_http_fileserver
  49. web_admin: true
  50. http_bind: true
  51. ## register: true
  52. captcha: false
  53.  
  54. ###. ==============
  55. ###' AUTHENTICATION
  56.  
  57. auth_method: odbc
  58.  
  59. ###. ==============
  60. ###' DATABASE SETUP
  61.  
  62. ## ejabberd by default uses the internal Mnesia database,
  63. ## so you do not necessarily need this section.
  64. ## This section provides configuration examples in case
  65. ## you want to use other database backends.
  66. ## Please consult the ejabberd Guide for details on database creation.
  67.  
  68. ##
  69. ## MySQL server:
  70.  
  71. odbc_type: mysql
  72. odbc_server: “localhost”
  73. odbc_database: "database"
  74. odbc_username: "user"
  75. odbc_password: "somepassword"
  76.  
  77. ###. ===============
  78. ###' TRAFFIC SHAPERS
  79.  
  80. shaper:
  81. normal: 100000
  82. fast: 5000000
  83.  
  84. max_fsm_queue: 1000
  85.  
  86. ###. ====================
  87. ###' ACCESS CONTROL LISTS
  88. acl:
  89. admin:
  90. user:
  91. local:
  92. user_regexp: ""
  93.  
  94. loopback:
  95. ip:
  96. - "127.0.0.0/8"
  97.  
  98. ##
  99. ## Bad XMPP servers
  100. ##
  101. ## bad_servers:
  102. ## server:
  103. ## - "xmpp.zombie.org"
  104. ## - "xmpp.spam.com"
  105.  
  106. ###. ============
  107. ###' SHAPER RULES
  108.  
  109. shaper_rules:
  110. ## Maximum number of simultaneous sessions allowed for a single user:
  111. max_user_sessions: 2
  112. ## Maximum number of offline messages that users can have:
  113. max_user_offline_messages:
  114. - 5000: admin
  115. - 100
  116. ## For C2S connections, all users except admins use the "normal" shaper
  117. c2s_shaper:
  118. - none: admin
  119. - fast
  120. ## All S2S connections use the "fast" shaper
  121. s2s_shaper: fast
  122.  
  123. ###. ============
  124. ###' ACCESS RULES
  125. access_rules:
  126. ## This rule allows access only for local users:
  127. local:
  128. - allow: local
  129. ## Only non-blocked users can use c2s connections:
  130. c2s:
  131. # - deny: blocked
  132. - allow
  133. ## Only admins can send announcement messages:
  134. announce:
  135. - allow: admin
  136. ## Only admins can use the configuration interface:
  137. configure:
  138. - allow: admin
  139. ## Only accounts of the local ejabberd server can create rooms:
  140. muc_create:
  141. - allow: local
  142. ## Only accounts on the local ejabberd server can create Pubsub nodes:
  143. pubsub_createnode:
  144. - allow: local
  145. ## In-band registration allows registration of any possible username.
  146. ## To disable in-band registration, replace 'allow' with 'deny'.
  147. register:
  148. - allow
  149. ## Only allow to register from localhost
  150. trusted_network:
  151. - allow: loopback
  152.  
  153. registration_timeout: 3
  154.  
  155. ###. ================
  156. ###' DEFAULT LANGUAGE
  157.  
  158. ##
  159. ## language: Default language used for server messages.
  160. ##
  161. language: "en"
  162.  
  163. ###. =======
  164. ###' CAPTCHA
  165.  
  166. ###. =======
  167. ###' MODULES
  168.  
  169. ##
  170. ## Modules enabled in all ejabberd virtual hosts.
  171. ##
  172. modules:
  173. mod_adhoc: {}
  174. mod_admin_extra: {}
  175. mod_announce: # recommends mod_adhoc
  176. access: announce
  177. mod_blocking: {} # requires mod_privacy
  178. mod_caps: {}
  179. mod_carboncopy: {}
  180. mod_client_state: {}
  181. mod_configure: {} # requires mod_adhoc
  182. mod_disco: {}
  183. ## mod_echo: {}
  184. mod_http_bind: {}
  185. ## mod_http_fileserver:
  186. ## docroot: "/var/www"
  187. ## accesslog: "/home/centos/ejabberd-16.12.beta1/logs/access.log"
  188. ## mod_irc: {}
  189. mod_last: {}
  190. mod_muc:
  191. ## host: "conference.@HOST@"
  192. access:
  193. - allow
  194. access_admin:
  195. - allow: admin
  196. access_create: muc_create
  197. access_persistent: muc_create
  198. mod_muc_admin: {}
  199. ## mod_muc_log: {}
  200. ## mod_multicast: {}
  201. mod_offline:
  202. access_max_user_messages: max_user_offline_messages
  203. mod_ping: {}
  204. ## mod_pres_counter:
  205. ## count: 5
  206. ## interval: 60
  207. mod_privacy: {}
  208. mod_private: {}
  209. ## mod_proxy65: {}
  210. mod_pubsub:
  211. access_createnode: pubsub_createnode
  212. ## reduces resource comsumption, but XEP incompliant
  213. ignore_pep_from_offline: false
  214. ## XEP compliant, but increases resource comsumption
  215. ## ignore_pep_from_offline: false
  216. last_item_cache: false
  217. db_type: odbc
  218. plugins:
  219. - "flat"
  220. - "pep" # pep requires mod_caps
  221. mod_register:
  222. access: register
  223. mod_roster:
  224. db_type: odbc
  225. mod_shared_roster: {}
  226. ## mod_stats: {}
  227. ## mod_time: {}
  228. mod_vcard:
  229. db_type: odbc
  230. search: true
  231. mod_version: {}
  232.  
  233. allow_contrib_modules: true
Advertisement
Add Comment
Please, Sign In to add comment