Guest User

ejabberd config

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