Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2017
82
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. - "admin@somedomain.com"
  92. local:
  93. user_regexp: ""
  94.  
  95. loopback:
  96. ip:
  97. - "127.0.0.0/8"
  98.  
  99. ##
  100. ## Bad XMPP servers
  101. ##
  102. ## bad_servers:
  103. ## server:
  104. ## - "xmpp.zombie.org"
  105. ## - "xmpp.spam.com"
  106.  
  107. ###. ============
  108. ###' SHAPER RULES
  109.  
  110. shaper_rules:
  111. ## Maximum number of simultaneous sessions allowed for a single user:
  112. max_user_sessions: 2
  113. ## Maximum number of offline messages that users can have:
  114. max_user_offline_messages:
  115. - 5000: admin
  116. - 100
  117. ## For C2S connections, all users except admins use the "normal" shaper
  118. c2s_shaper:
  119. - none: admin
  120. - fast
  121. ## All S2S connections use the "fast" shaper
  122. s2s_shaper: fast
  123.  
  124. ###. ============
  125. ###' ACCESS RULES
  126. access_rules:
  127. ## This rule allows access only for local users:
  128. local:
  129. - allow: local
  130. ## Only non-blocked users can use c2s connections:
  131. c2s:
  132. # - deny: blocked
  133. - allow
  134. ## Only admins can send announcement messages:
  135. announce:
  136. - allow: admin
  137. ## Only admins can use the configuration interface:
  138. configure:
  139. - allow: admin
  140. ## Only accounts of the local ejabberd server can create rooms:
  141. muc_create:
  142. - allow: local
  143. ## Only accounts on the local ejabberd server can create Pubsub nodes:
  144. pubsub_createnode:
  145. - allow: local
  146. ## In-band registration allows registration of any possible username.
  147. ## To disable in-band registration, replace 'allow' with 'deny'.
  148. register:
  149. - allow
  150. ## Only allow to register from localhost
  151. trusted_network:
  152. - allow: loopback
  153.  
  154. registration_timeout: 3
  155.  
  156. ###. ================
  157. ###' DEFAULT LANGUAGE
  158.  
  159. ##
  160. ## language: Default language used for server messages.
  161. ##
  162. language: "en"
  163.  
  164. ###. =======
  165. ###' CAPTCHA
  166.  
  167. ###. =======
  168. ###' MODULES
  169.  
  170. ##
  171. ## Modules enabled in all ejabberd virtual hosts.
  172. ##
  173. modules:
  174. mod_adhoc: {}
  175. mod_admin_extra: {}
  176. mod_announce: # recommends mod_adhoc
  177. access: announce
  178. mod_blocking: {} # requires mod_privacy
  179. mod_caps: {}
  180. mod_carboncopy: {}
  181. mod_client_state: {}
  182. mod_configure: {} # requires mod_adhoc
  183. mod_disco: {}
  184. ## mod_echo: {}
  185. mod_http_bind: {}
  186. ## mod_http_fileserver:
  187. ## docroot: "/var/www"
  188. ## accesslog: "/home/centos/ejabberd-16.12.beta1/logs/access.log"
  189. ## mod_irc: {}
  190. mod_last: {}
  191. mod_muc:
  192. ## host: "conference.@HOST@"
  193. access:
  194. - allow
  195. access_admin:
  196. - allow: admin
  197. access_create: muc_create
  198. access_persistent: muc_create
  199. mod_muc_admin: {}
  200. ## mod_muc_log: {}
  201. ## mod_multicast: {}
  202. mod_offline:
  203. access_max_user_messages: max_user_offline_messages
  204. mod_ping: {}
  205. ## mod_pres_counter:
  206. ## count: 5
  207. ## interval: 60
  208. mod_privacy: {}
  209. mod_private: {}
  210. ## mod_proxy65: {}
  211. mod_pubsub:
  212. access_createnode: pubsub_createnode
  213. ## reduces resource comsumption, but XEP incompliant
  214. ignore_pep_from_offline: false
  215. ## XEP compliant, but increases resource comsumption
  216. ## ignore_pep_from_offline: false
  217. last_item_cache: false
  218. db_type: odbc
  219. plugins:
  220. - "flat"
  221. - "pep" # pep requires mod_caps
  222. mod_register:
  223. access: register
  224. mod_roster:
  225. db_type: odbc
  226. mod_shared_roster: {}
  227. ## mod_stats: {}
  228. ## mod_time: {}
  229. mod_vcard:
  230. db_type: odbc
  231. search: true
  232. mod_version: {}
  233.  
  234. allow_contrib_modules: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement