Advertisement
Guest User

Untitled

a guest
Apr 18th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.22 KB | None | 0 0
  1. ###
  2. ###' ejabberd configuration file
  3. ###
  4. ###
  5.  
  6. ### The parameters used in this configuration file are explained in more detail
  7. ### in the ejabberd Installation and Operation Guide.
  8. ### Please consult the Guide in case of doubts, it is included with
  9. ### your copy of ejabberd, and is also available online at
  10. ### http://www.process-one.net/en/ejabberd/docs/
  11.  
  12. ### The configuration file is written in YAML.
  13. ### Refer to http://en.wikipedia.org/wiki/YAML for the brief description.
  14. ### However, ejabberd treats different literals as different types:
  15. ###
  16. ### - unquoted or single-quoted strings. They are called "atoms".
  17. ### Example: dog, 'Jupiter', '3.14159', YELLOW
  18. ###
  19. ### - numeric literals. Example: 3, -45.0, .0
  20. ###
  21. ### - quoted or folded strings.
  22. ### Examples of quoted string: "Lizzard", "orange".
  23. ### Example of folded string:
  24. ### > Art thou not Romeo,
  25. ### and a Montague?
  26.  
  27. ###. =======
  28. ###' LOGGING
  29.  
  30. ##
  31. ## loglevel: Verbosity of log files generated by ejabberd.
  32. ## 0: No ejabberd log at all (not recommended)
  33. ## 1: Critical
  34. ## 2: Error
  35. ## 3: Warning
  36. ## 4: Info
  37. ## 5: Debug
  38. ##
  39. loglevel: 4
  40.  
  41. ##
  42. ## rotation: Describe how to rotate logs. Either size and/or date can trigger
  43. ## log rotation. Setting count to N keeps N rotated logs. Setting count to 0
  44. ## does not disable rotation, it instead rotates the file and keeps no previous
  45. ## versions around. Setting size to X rotate log when it reaches X bytes.
  46. ## To disable rotation set the size to 0 and the date to ""
  47. ## Date syntax is taken from the syntax newsyslog uses in newsyslog.conf.
  48. ## Some examples:
  49. ## $D0 rotate every night at midnight
  50. ## $D23 rotate every day at 23:00 hr
  51. ## $W0D23 rotate every week on Sunday at 23:00 hr
  52. ## $W5D16 rotate every week on Friday at 16:00 hr
  53. ## $M1D0 rotate on the first day of every month at midnight
  54. ## $M5D6 rotate on every 5th day of the month at 6:00 hr
  55. ##
  56. log_rotate_size: 10485760
  57. log_rotate_date: ""
  58. log_rotate_count: 1
  59.  
  60. ##
  61. ## overload protection: If you want to limit the number of messages per second
  62. ## allowed from error_logger, which is a good idea if you want to avoid a flood
  63. ## of messages when system is overloaded, you can set a limit.
  64. ## 100 is ejabberd's default.
  65. log_rate_limit: 100
  66.  
  67. ##
  68. ## watchdog_admins: Only useful for developers: if an ejabberd process
  69. ## consumes a lot of memory, send live notifications to these XMPP
  70. ## accounts.
  71. ##
  72. ## watchdog_admins:
  73. ## - "bob@example.com"
  74.  
  75. ###. ===============
  76. ###' NODE PARAMETERS
  77.  
  78. ##
  79. ## net_ticktime: Specifies net_kernel tick time in seconds. This options must have
  80. ## identical value on all nodes, and in most cases shouldn't be changed at all from
  81. ## default value.
  82. ##
  83. ## net_ticktime: 60
  84.  
  85. ###. ================
  86. ###' SERVED HOSTNAMES
  87.  
  88. ##
  89. ## hosts: Domains served by ejabberd.
  90. ## You can define one or several, for example:
  91. ## hosts:
  92. ## - "example.net"
  93. ## - "example.com"
  94. ## - "example.org"
  95. ##
  96. hosts:
  97. - "deathstar.name"
  98.  
  99. ##
  100. ## route_subdomains: Delegate subdomains to other XMPP servers.
  101. ## For example, if this ejabberd serves example.org and you want
  102. ## to allow communication with an XMPP server called im.example.org.
  103. ##
  104. ## route_subdomains: s2s
  105.  
  106. ###. ============
  107. ###' Certificates
  108.  
  109. ## List all available PEM files containing certificates for your domains,
  110. ## chains of certificates or certificate keys. Full chains will be built
  111. ## automatically by ejabberd.
  112. ##
  113. certfiles:
  114. - "/usr/local/etc/letsencrypt/live/deathstar.name/*.pem"
  115. ## - "/etc/letsencrypt/live/example.com/*.pem"
  116. ##
  117. ## If your system provides only a single CA file (CentOS/FreeBSD):
  118. ## ca_file: "/usr/local/etc/ejabberd/ssl.pem"
  119.  
  120. ###. =================
  121. ###' TLS configuration
  122.  
  123. ## Note that the following configuration is the default
  124. ## configuration of the TLS driver, so you don't need to
  125. ## uncomment it.
  126. ##
  127. define_macro:
  128. 'TLS_CIPHERS': "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
  129. 'TLS_OPTIONS':
  130. - "no_sslv3"
  131. - "cipher_server_preference"
  132. - "no_compression"
  133. 'DH_FILE': "/usr/local/etc/ejabberd/dh.pem" # generated with: openssl dhparam -out dhparams.pem 2048
  134. ##
  135. c2s_dhfile: 'DH_FILE'
  136. s2s_dhfile: 'DH_FILE'
  137. c2s_ciphers: 'TLS_CIPHERS'
  138. s2s_ciphers: 'TLS_CIPHERS'
  139. c2s_protocol_options: 'TLS_OPTIONS'
  140. s2s_protocol_options: 'TLS_OPTIONS'
  141.  
  142. ###. ===============
  143. ###' LISTENING PORTS
  144.  
  145. ##
  146. ## listen: The ports ejabberd will listen on, which service each is handled
  147. ## by and what options to start it with.
  148. ##
  149. listen:
  150. -
  151. port: 5222
  152. ## ip: "::"
  153. module: ejabberd_c2s
  154. ##
  155. ## If TLS is compiled in and you installed a SSL
  156. ## certificate, uncomment this line:
  157. ##
  158. starttls: true
  159. ##
  160. ## To enforce TLS encryption for client connections,
  161. ## use this instead of the "starttls" option:
  162. ##
  163. starttls_required: true
  164. ##
  165. ## Stream compression
  166. ##
  167. zlib: true
  168. ##
  169. max_stanza_size: 65536
  170. shaper: c2s_shaper
  171. access: c2s
  172. resend_on_timeout: if_offline
  173. resume_timeout: 20
  174. max_ack_queue: 10000
  175. stream_management: true
  176. -
  177. port: 5269
  178. ## ip: "::"
  179. module: ejabberd_s2s_in
  180. -
  181. port: 5280
  182. ## ip: "::"
  183. module: ejabberd_http
  184. request_handlers:
  185. "/ws": ejabberd_http_ws
  186. "/bosh": mod_bosh
  187. "/api": mod_http_api
  188. ## "/pub/archive": mod_http_fileserver
  189. web_admin: true
  190. ## register: true
  191. captcha: true
  192. ##
  193. ## ejabberd_service: Interact with external components (transports, ...)
  194. ##
  195. ## -
  196. ## port: 8888
  197. ## ip: "::"
  198. ## module: ejabberd_service
  199. ## access: all
  200. ## shaper_rule: fast
  201. ## ip: "127.0.0.1"
  202. ## privilege_access:
  203. ## roster: "both"
  204. ## message: "outgoing"
  205. ## presence: "roster"
  206. ## delegations:
  207. ## "urn:xmpp:mam:1":
  208. ## filtering: ["node"]
  209. ## "http://jabber.org/protocol/pubsub":
  210. ## filtering: []
  211. ## hosts:
  212. ## "icq.example.org":
  213. ## password: "secret"
  214. ## "sms.example.org":
  215. ## password: "secret"
  216.  
  217. ##
  218. ## ejabberd_stun: Handles STUN Binding requests
  219. ##
  220. -
  221. port: 3478
  222. transport: udp
  223. module: ejabberd_stun
  224.  
  225. ##
  226. ## To handle XML-RPC requests that provide admin credentials:
  227. ##
  228. ## -
  229. ## port: 4560
  230. ## ip: "::"
  231. ## module: ejabberd_xmlrpc
  232. ## maxsessions: 10
  233. ## timeout: 5000
  234. ## access_commands:
  235. ## admin:
  236. ## commands: all
  237. ## options: []
  238.  
  239. ##
  240. ## To enable secure http upload
  241. ##
  242. -
  243. port: 5444
  244. ## ip: "::"
  245. module: ejabberd_http
  246. request_handlers:
  247. "": mod_http_upload
  248. tls: true
  249. protocol_options: 'TLS_OPTIONS'
  250. dhfile: 'DH_FILE'
  251. ciphers: 'TLS_CIPHERS'
  252.  
  253. -
  254. port: 5281
  255. module: ejabberd_http
  256. request_handlers:
  257. "/api": mod_http_api
  258.  
  259. ## Disabling digest-md5 SASL authentication. digest-md5 requires plain-text
  260. ## password storage (see auth_password_format option).
  261. ## disable_sasl_mechanisms: "digest-md5"
  262.  
  263. ###. ==================
  264. ###' S2S GLOBAL OPTIONS
  265.  
  266. ##
  267. ## s2s_use_starttls: Enable STARTTLS for S2S connections.
  268. ## Allowed values are: false, optional or required
  269. ## You must specify 'certfiles' option
  270. ##
  271. s2s_use_starttls: required
  272.  
  273. ##
  274. ## S2S whitelist or blacklist
  275. ##
  276. ## Default s2s policy for undefined hosts.
  277. ##
  278. ## s2s_access: s2s
  279.  
  280. ##
  281. ## Outgoing S2S options
  282. ##
  283. ## Preferred address families (which to try first) and connect timeout
  284. ## in seconds.
  285. ##
  286. ## outgoing_s2s_families:
  287. ## - ipv4
  288. ## - ipv6
  289. ## outgoing_s2s_timeout: 190
  290.  
  291. ###. ==============
  292. ###' AUTHENTICATION
  293.  
  294. ##
  295. ## auth_method: Method used to authenticate the users.
  296. ## The default method is the internal.
  297. ## If you want to use a different method,
  298. ## comment this line and enable the correct ones.
  299. ##
  300. ## auth_method: internal
  301.  
  302. ##
  303. ## Store the plain passwords or hashed for SCRAM:
  304. ## auth_password_format: plain
  305. ## auth_password_format: scram
  306. ##
  307. ## Define the FQDN if ejabberd doesn't detect it:
  308. ## fqdn: "server3.example.com"
  309.  
  310. ##
  311. ## Authentication using external script
  312. ## Make sure the script is executable by ejabberd.
  313. ##
  314. ## auth_method: external
  315. ## extauth_program: "/path/to/authentication/script"
  316.  
  317. ##
  318. ## Authentication using SQL
  319. ## Remember to setup a database in the next section.
  320. ##
  321. auth_method: sql
  322.  
  323. ##
  324. ## Authentication using PAM
  325. ##
  326. ## auth_method: pam
  327. ## pam_service: "pamservicename"
  328.  
  329. ##
  330. ## Authentication using LDAP
  331. ##
  332. ## auth_method: ldap
  333. ##
  334. ## List of LDAP servers:
  335. ## ldap_servers:
  336. ## - "localhost"
  337. ##
  338. ## Encryption of connection to LDAP servers:
  339. ## ldap_encrypt: none
  340. ## ldap_encrypt: tls
  341. ##
  342. ## Port to connect to on LDAP servers:
  343. ## ldap_port: 389
  344. ## ldap_port: 636
  345. ##
  346. ## LDAP manager:
  347. ## ldap_rootdn: "dc=example,dc=com"
  348. ##
  349. ## Password of LDAP manager:
  350. ## ldap_password: "******"
  351. ##
  352. ## Search base of LDAP directory:
  353. ## ldap_base: "dc=example,dc=com"
  354. ##
  355. ## LDAP attribute that holds user ID:
  356. ## ldap_uids:
  357. ## - "mail": "%u@mail.example.org"
  358. ##
  359. ## LDAP filter:
  360. ## ldap_filter: "(objectClass=shadowAccount)"
  361.  
  362. ##
  363. ## Anonymous login support:
  364. ## auth_method: anonymous
  365. ## anonymous_protocol: sasl_anon | login_anon | both
  366. ## allow_multiple_connections: true | false
  367. ##
  368. ## host_config:
  369. ## "public.example.org":
  370. ## auth_method: anonymous
  371. ## allow_multiple_connections: false
  372. ## anonymous_protocol: sasl_anon
  373. ##
  374. ## To use both anonymous and internal authentication:
  375. ##
  376. ## host_config:
  377. ## "public.example.org":
  378. ## auth_method:
  379. ## - internal
  380. ## - anonymous
  381.  
  382. ###. ==============
  383. ###' DATABASE SETUP
  384.  
  385. ## ejabberd by default uses the internal Mnesia database,
  386. ## so you do not necessarily need this section.
  387. ## This section provides configuration examples in case
  388. ## you want to use other database backends.
  389. ## Please consult the ejabberd Guide for details on database creation.
  390.  
  391. ##
  392. ## MySQL server:
  393. ##
  394. #default_db: sql
  395. sql_type: mysql
  396. sql_server: "localhost"
  397. sql_database: "ejabberd1"
  398. sql_username: "ejabberd"
  399. sql_password: "password"
  400.  
  401. ##
  402. ## If you want to specify the port:
  403. sql_port: 3306
  404.  
  405. ##
  406. ## PostgreSQL server:
  407. ##
  408. ## sql_type: pgsql
  409. ## sql_server: "server"
  410. ## sql_database: "database"
  411. ## sql_username: "username"
  412. ## sql_password: "password"
  413. ##
  414. ## If you want to specify the port:
  415. ## sql_port: 1234
  416. ##
  417. ## If you use PostgreSQL, have a large database, and need a
  418. ## faster but inexact replacement for "select count(*) from users"
  419. ##
  420. ## pgsql_users_number_estimate: true
  421.  
  422. ##
  423. ## SQLite:
  424. ##
  425. ## sql_type: sqlite
  426. ## sql_database: "/path/to/database.db"
  427.  
  428. ##
  429. ## ODBC compatible or MSSQL server:
  430. ##
  431. ## sql_type: odbc
  432. ## sql_server: "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"
  433.  
  434. ##
  435. ## Number of connections to open to the database for each virtual host
  436. ##
  437. ## sql_pool_size: 10
  438.  
  439. ##
  440. ## Interval to make a dummy SQL request to keep the connections to the
  441. ## database alive. Specify in seconds: for example 28800 means 8 hours
  442. ##
  443. ## sql_keepalive_interval: undefined
  444.  
  445. ###. ===============
  446. ###' TRAFFIC SHAPERS
  447.  
  448. shaper:
  449. ##
  450. ## The "normal" shaper limits traffic speed to 1000 B/s
  451. ##
  452. normal: 1000
  453.  
  454. ##
  455. ## The "fast" shaper limits traffic speed to 50000 B/s
  456. ##
  457. fast: 50000
  458. proxy65: 65536
  459.  
  460. ##
  461. ## This option specifies the maximum number of elements in the queue
  462. ## of the FSM. Refer to the documentation for details.
  463. ##
  464. max_fsm_queue: 10000
  465.  
  466. ###. ====================
  467. ###' ACCESS CONTROL LISTS
  468. acl:
  469. ##
  470. ## The 'admin' ACL grants administrative privileges to XMPP accounts.
  471. ## You can put here as many accounts as you want.
  472. ##
  473. admin:
  474. user:
  475. - "deathstar": "deathstar.name"
  476. ## - "aleksey@localhost"
  477. ## - "ermine@example.org"
  478. ##
  479. ## Blocked users
  480. ##
  481. ## blocked:
  482. ## user:
  483. ## - "baduser@example.org"
  484. ## - "test"
  485.  
  486. ## Local users: don't modify this.
  487. ##
  488. local:
  489. user_regexp: ""
  490.  
  491. ##
  492. ## More examples of ACLs
  493. ##
  494. ## jabberorg:
  495. ## server:
  496. ## - "jabber.org"
  497. ## aleksey:
  498. ## user:
  499. ## - "aleksey@jabber.ru"
  500. ## test:
  501. ## user_regexp: "^test"
  502. ## user_glob: "test*"
  503.  
  504. ##
  505. ## Loopback network
  506. ##
  507. loopback:
  508. ip:
  509. - "127.0.0.0/8"
  510. - "::1/128"
  511. - "::FFFF:127.0.0.1/128"
  512.  
  513. ##
  514. ## Bad XMPP servers
  515. ##
  516. ## bad_servers:
  517. ## server:
  518. ## - "xmpp.zombie.org"
  519. ## - "xmpp.spam.com"
  520.  
  521. ##
  522. ## Define specific ACLs in a virtual host.
  523. ##
  524. ## host_config:
  525. ## "localhost":
  526. ## acl:
  527. ## admin:
  528. ## user:
  529. ## - "bob-local@localhost"
  530.  
  531. ###. ============
  532. ###' SHAPER RULES
  533.  
  534. shaper_rules:
  535. ## Maximum number of simultaneous sessions allowed for a single user:
  536. max_user_sessions: 10
  537. ## Maximum number of offline messages that users can have:
  538. max_user_offline_messages:
  539. - 5000: admin
  540. - 100
  541. ## For C2S connections, all users except admins use the "normal" shaper
  542. c2s_shaper:
  543. - none: admin
  544. - normal
  545. ## All S2S connections use the "fast" shaper
  546. s2s_shaper: fast
  547.  
  548. ###. ============
  549. ###' ACCESS RULES
  550. access_rules:
  551. ## This rule allows access only for local users:
  552. local:
  553. - allow: local
  554. ## Only non-blocked users can use c2s connections:
  555. c2s:
  556. - deny: blocked
  557. - allow
  558. ## Only admins can send announcement messages:
  559. announce:
  560. - allow: admin
  561. ## Only admins can use the configuration interface:
  562. configure:
  563. - allow: admin
  564. ## Only accounts of the local ejabberd server can create rooms:
  565. muc_create:
  566. - allow: local
  567. ## Only accounts on the local ejabberd server can create Pubsub nodes:
  568. pubsub_createnode:
  569. - allow: local
  570. ## In-band registration allows registration of any possible username.
  571. ## To disable in-band registration, replace 'allow' with 'deny'.
  572. register:
  573. - allow
  574. ## All local users may access to proxy65
  575. proxy65:
  576. - allow: local
  577. - deny: all
  578. ## Only allow to register from localhost
  579. trusted_network:
  580. - allow: loopback
  581. ## Do not establish S2S connections with bad servers
  582. ## If you enable this you also have to uncomment "s2s_access: s2s"
  583. ## s2s:
  584. ## - deny:
  585. ## - ip: "XXX.XXX.XXX.XXX/32"
  586. ## - deny:
  587. ## - ip: "XXX.XXX.XXX.XXX/32"
  588. ## - allow
  589.  
  590. ## ===============
  591. ## API PERMISSIONS
  592. ## ===============
  593. ##
  594. ## This section allows you to define who and using what method
  595. ## can execute commands offered by ejabberd.
  596. ##
  597. ## By default "console commands" section allow executing all commands
  598. ## issued using ejabberdctl command, and "admin access" section allows
  599. ## users in admin acl that connect from 127.0.0.1 to execute all
  600. ## commands except start and stop with any available access method
  601. ## (ejabberdctl, http-api, xmlrpc depending what is enabled on server).
  602. ##
  603. ## If you remove "console commands" there will be one added by
  604. ## default allowing executing all commands, but if you just change
  605. ## permissions in it, version from config file will be used instead
  606. ## of default one.
  607. ##
  608. api_permissions:
  609. "console commands":
  610. from:
  611. - ejabberd_ctl
  612. who: all
  613. what: "*"
  614. "admin access":
  615. who:
  616. - access:
  617. - allow:
  618. - acl: loopback
  619. - acl: admin
  620. - oauth:
  621. - scope: "ejabberd:admin"
  622. - access:
  623. - allow:
  624. - acl: loopback
  625. - acl: admin
  626. what:
  627. - "*"
  628. - "!stop"
  629. - "!start"
  630. "public commands":
  631. who:
  632. - ip: "127.0.0.1/8"
  633. what:
  634. - "status"
  635. - "connected_users_number"
  636.  
  637. ## By default the frequency of account registrations from the same IP
  638. ## is limited to 1 account every 10 minutes. To disable, specify: infinity
  639. ## registration_timeout: 600
  640.  
  641. ##
  642. ## Define specific Access Rules in a virtual host.
  643. ##
  644. ## host_config:
  645. ## "localhost":
  646. ## access:
  647. ## c2s:
  648. ## - allow: admin
  649. ## - deny
  650. ## register:
  651. ## - deny
  652.  
  653. ###. ================
  654. ###' DEFAULT LANGUAGE
  655.  
  656. ##
  657. ## language: Default language used for server messages.
  658. ##
  659. language: "ru"
  660.  
  661. ##
  662. ## Set a different default language in a virtual host.
  663. ##
  664. ## host_config:
  665. ## "localhost":
  666. ## language: "ru"
  667.  
  668. ###. =======
  669. ###' CAPTCHA
  670.  
  671. ##
  672. ## Full path to a script that generates the image.
  673. ##
  674. captcha_cmd: "/usr/local/share/ejabberd/captcha.sh"
  675.  
  676. ##
  677. ## Host for the URL and port where ejabberd listens for CAPTCHA requests.
  678. ##
  679. captcha_host: "jabber.deathstar.name:5280"
  680.  
  681. ##
  682. ## Limit CAPTCHA calls per minute for JID/IP to avoid DoS.
  683. ##
  684. captcha_limit: 5
  685.  
  686. ###. ====
  687. ###' ACME
  688. ##
  689. ## In order to use the acme certificate acquiring through "Let's Encrypt"
  690. ## an http listener has to be configured to listen to port 80 so that
  691. ## the authorization challenges posed by "Let's Encrypt" can be solved.
  692. ##
  693. ## A simple way of doing this would be to add the following in the listening
  694. ## section and to configure port forwarding from 80 to 5280 either via NAT
  695. ## (for ipv4 only) or using frontends such as haproxy/nginx/sslh/etc.
  696. ## -
  697. ## port: 5280
  698. ## ip: "::"
  699. ## module: ejabberd_http
  700.  
  701. acme:
  702.  
  703. ## A contact mail that the ACME Certificate Authority can contact in case of
  704. ## an authorization issue, such as a server-initiated certificate revocation.
  705. ## It is not mandatory to provide an email address but it is highly suggested.
  706. contact: "mailto:deathstar@deathstar.name"
  707.  
  708.  
  709. ## The ACME Certificate Authority URL.
  710. ## This could either be:
  711. ## - https://acme-v01.api.letsencrypt.org - (Default) for the production CA
  712. ## - https://acme-staging.api.letsencrypt.org - for the staging CA
  713. ## - http://localhost:4000 - for a local version of the CA
  714. ca_url: "https://acme-v01.api.letsencrypt.org"
  715.  
  716. ###. =======
  717. ###' MODULES
  718.  
  719. ##
  720. ## Modules enabled in all ejabberd virtual hosts.
  721. ##
  722. modules:
  723. mod_adhoc: {}
  724. mod_admin_extra: {}
  725. mod_announce: # recommends mod_adhoc
  726. access: announce
  727. db_type: sql
  728. mod_blocking: {} # requires mod_privacy
  729. mod_caps: {}
  730. mod_carboncopy: {}
  731. mod_client_state: {}
  732. mod_configure: {} # requires mod_adhoc
  733. ## mod_delegation: {} # for xep0356
  734. mod_disco: {}
  735. mod_echo: {}
  736. mod_irc:
  737. db_type: sql
  738. mod_bosh: {}
  739. ## mod_http_fileserver:
  740. ## docroot: "/var/www"
  741. ## accesslog: "/var/log/ejabberd/access.log"
  742. mod_http_upload:
  743. docroot: "/var/spool/ejabberd/upload"
  744. put_url: "https://upload.@HOST@:5444/"
  745. thumbnail: false # otherwise needs the identify command from ImageMagick installed
  746. mod_http_upload_quota:
  747. max_days: 30
  748. mod_last:
  749. db_type: sql
  750. ## XEP-0313: Message Archive Management
  751. ## You might want to setup a SQL backend for MAM because the mnesia database is
  752. ## limited to 2GB which might be exceeded on large servers
  753. ## mod_mam: {} # for xep0313, mnesia is limited to 2GB, better use an SQL backend
  754. mod_muc:
  755. db_type: sql
  756. ## host: "conference.@HOST@"
  757. access:
  758. - allow
  759. access_admin:
  760. - allow: admin
  761. access_create: muc_create
  762. access_persistent: muc_create
  763. mod_muc_admin: {}
  764. ## mod_muc_log: {}
  765. ## mod_multicast: {}
  766. mod_offline:
  767. access_max_user_messages: max_user_offline_messages
  768. db_type: sql
  769. mod_ping: {}
  770. ## mod_pres_counter:
  771. ## count: 5
  772. ## interval: 60
  773. mod_privacy:
  774. db_type: sql
  775. mod_private:
  776. db_type: sql
  777. mod_proxy65:
  778. host: "proxy.@HOST@"
  779. name: "Proxy for File Transfers"
  780. ip: "176.9.110.4"
  781. port: 7777
  782. auth_type: anonymous
  783. access: proxy65
  784. shaper: proxy65
  785. mod_pubsub:
  786. db_type: sql
  787. access_createnode: pubsub_createnode
  788. ## reduces resource comsumption, but XEP incompliant
  789. ignore_pep_from_offline: true
  790. ## XEP compliant, but increases resource comsumption
  791. ## ignore_pep_from_offline: false
  792. last_item_cache: false
  793. plugins:
  794. - "flat"
  795. - "hometree"
  796. - "pep" # pep requires mod_caps
  797. mod_push: {}
  798. mod_push_keepalive: {}
  799. mod_register:
  800. ##
  801. ## Protect In-Band account registrations with CAPTCHA.
  802. ##
  803. captcha_protected: true
  804. ##
  805. ## Set the minimum informational entropy for passwords.
  806. ##
  807. password_strength: 32
  808. ##
  809. ## After successful registration, the user receives
  810. ## a message with this subject and body.
  811. ##
  812. welcome_message:
  813. subject: "Welcome!"
  814. body: |-
  815. Hi.
  816. Welcome to this XMPP server.
  817. ##
  818. ## When a user registers, send a notification to
  819. ## these XMPP accounts.
  820. ##
  821. registration_watchers:
  822. - "deathstar@deathstar.name"
  823. ##
  824. ## Only clients in the server machine can register accounts
  825. ##
  826. ## ip_access: trusted_network
  827. ##
  828. ## Local c2s or remote s2s users cannot register accounts
  829. ##
  830. ## access_from: deny
  831. access: register
  832. mod_roster:
  833. db_type: sql
  834. mod_shared_roster:
  835. db_type: sql
  836. mod_stats: {}
  837. mod_time: {}
  838. mod_vcard:
  839. db_type: sql
  840. search: false
  841. mod_vcard_xupdate: {}
  842. ## Convert all avatars posted by Android clients from WebP to JPEG
  843. ## mod_avatar: # this module needs compile option --enable-graphics
  844. ## convert:
  845. ## webp: jpeg
  846. mod_version: {}
  847. mod_stream_mgmt:
  848. resend_on_timeout: if_offline
  849. resume_timeout: 20
  850. max_ack_queue: 10000
  851. ## Non-SASL Authentication (XEP-0078) is now disabled by default
  852. ## because it's obsoleted and is used mostly by abandoned
  853. ## client software
  854. ## mod_legacy_auth: {}
  855. ## The module for S2S dialback (XEP-0220). Please note that you cannot
  856. ## rely solely on dialback if you want to federate with other servers,
  857. ## because a lot of servers have dialback disabled and instead rely on
  858. ## PKIX authentication. Make sure you have proper certificates installed
  859. ## and check your accessibility at https://check.messaging.one/
  860. mod_s2s_dialback: {}
  861. mod_http_api: {}
  862.  
  863. ##
  864. ## Enable modules with custom options in a specific virtual host
  865. ##
  866. ## host_config:
  867. ## "localhost":
  868. ## modules:
  869. ## mod_echo:
  870. ## host: "mirror.localhost"
  871.  
  872. ##
  873. ## Enable modules management via ejabberdctl for installation and
  874. ## uninstallation of public/private contributed modules
  875. ## (enabled by default)
  876. ##
  877.  
  878. allow_contrib_modules: true
  879.  
  880. ###.
  881. ###'
  882. ### Local Variables:
  883. ### mode: yaml
  884. ### End:
  885. ### vim: set filetype=yaml tabstop=8 foldmarker=###',###. foldmethod=marker:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement