Guest User

ejabberd.yml

a guest
Sep 17th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.29 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.  - chat.example.com
  19.   - conference.chat.example.com
  20.  
  21. loglevel: 5
  22. log_rotate_size: 10485760
  23. log_rotate_date: ""
  24. log_rotate_count: 1
  25. log_rate_limit: 100
  26.  
  27. #certfiles:
  28. #  - /home/ejabberd/conf/server.pem
  29.  
  30. #ca_file: "/home/ejabberd/conf/cacert.pem"
  31.  
  32. ## When using let's encrypt to generate certificates
  33. certfiles:
  34.  - /etc/letsencrypt/live/chat.example.com/fullchain.pem
  35.   - /etc/letsencrypt/live/chat.example.com/privkey.pem
  36.  
  37. ca_file: "/etc/letsencrypt/live/chat.example.com/fullchain.pem"
  38.  
  39. listen:
  40.  -
  41.     port: 5222
  42.     ip: "::"
  43.     module: ejabberd_c2s
  44.     max_stanza_size: 262144
  45.     shaper: c2s_shaper
  46.     access: c2s
  47.     starttls_required: true
  48.   -
  49.     port: 5269
  50.     ip: "::"
  51.     module: ejabberd_s2s_in
  52.     max_stanza_size: 524288
  53.   -
  54.     port: 5443
  55.     ip: "::"
  56.     module: ejabberd_http
  57.     tls: true
  58.     request_handlers:
  59.       "/admin": ejabberd_web_admin
  60.       "/api": mod_http_api
  61.       "/captcha": ejabberd_captcha
  62.       "/upload": mod_http_upload
  63.       "/ws": ejabberd_http_ws
  64.   -
  65.     port: 5280
  66.     ip: "::"
  67.     module: ejabberd_http
  68.     request_handlers:
  69.       "/admin": ejabberd_web_admin
  70.   -
  71.     port: 1883
  72.     ip: "::"
  73.     module: mod_mqtt
  74.     backlog: 1000
  75.  
  76. s2s_use_starttls: optional
  77.  
  78. acl:
  79.   local:
  80.     user_regexp: ""
  81.   loopback:
  82.     ip:
  83.      - 127.0.0.0/8
  84.       - ::1/128
  85.       - ::FFFF:127.0.0.1/128
  86.   admin:
  87.     user:
  88.      - "admin@chat.example.com"
  89.  
  90. access_rules:
  91.   local:
  92.     allow: local
  93.   c2s:
  94.     deny: blocked
  95.     allow: all
  96.   announce:
  97.     allow: admin
  98.   configure:
  99.     allow: admin
  100.   muc_create:
  101.     allow: local
  102.   pubsub_createnode:
  103.     allow: local
  104.   trusted_network:
  105.     allow: loopback
  106.  
  107. api_permissions:
  108.   "console commands":
  109.     from:
  110.      - ejabberd_ctl
  111.     who: all
  112.     what: "*"
  113.   "admin access":
  114.     who:
  115.       access:
  116.         allow:
  117.           acl: loopback
  118.           acl: admin
  119.       oauth:
  120.         scope: "ejabberd:admin"
  121.         access:
  122.           allow:
  123. #            acl: loopback
  124.             acl: admin
  125.     what:
  126.      - "*"
  127.       - "!stop"
  128.       - "!start"
  129.   "public commands":
  130.     who:
  131.       ip: 127.0.0.1/8
  132.     what:
  133.      - status
  134.       - connected_users_number
  135.  
  136. shaper:
  137.   normal: 1000
  138.   fast: 50000
  139.  
  140. shaper_rules:
  141.   max_user_sessions: 10
  142.   max_user_offline_messages:
  143.     infinity: admin
  144.     infinity: all
  145.   c2s_shaper:
  146.     none: admin
  147.     normal: all
  148.   s2s_shaper: fast
  149.  
  150. max_fsm_queue: 10000
  151.  
  152. acme:
  153.    contact: "mailto:example-admin@example.com"
  154.    ca_url: "https://acme-v01.api.letsencrypt.org"
  155.  
  156. sql_type: pgsql
  157. sql_server: "ejabberd_server"
  158. sql_database: "ejabberd"
  159. sql_username: "ejabberd"
  160. sql_password: "{PASSWORD}"
  161.  
  162. auth_method: sql
  163. auth_password_format: scram
  164. default_db: sql
  165.  
  166. commands_admin_access: configure
  167. commands:
  168.   - add_commands:
  169.    - user
  170. oauth_expire: 3600
  171. oauth_access: all
  172.  
  173. modules:
  174.   mod_adhoc: {}
  175.   mod_admin_extra: {}
  176.   mod_announce:
  177.     access: announce
  178.   mod_avatar: {}
  179.   mod_blocking: {}
  180.   mod_bosh: {}
  181.   mod_caps: {}
  182.   mod_carboncopy: {}
  183.   mod_client_state: {}
  184.   mod_configure: {}
  185.   mod_disco: {}
  186.   mod_fail2ban: {}
  187.   mod_http_api: {}
  188.   mod_http_upload:
  189.     put_url: https://@HOST@:5443/upload
  190.   mod_last: {}
  191.   mod_mam:
  192.     compress_xml: true
  193.     db_type: sql
  194.     assume_mam_usage: true
  195.     clear_archive_on_room_destroy: false
  196.     user_mucsub_from_muc_archive: true
  197.     default: always
  198.   mod_mqtt: {}
  199.   mod_muc:
  200.     access:
  201.      - allow
  202.     access_admin:
  203.       - allow: admin
  204.     access_create: muc_create
  205.     access_persistent: muc_create
  206.     access_mam:
  207.      - allow
  208.     default_room_options:
  209.       allow_subscription: true
  210.       allow_private_messages: false
  211.       allow_user_invites: true
  212.       mam: true
  213.       persistent: true
  214.       public: false
  215.       allow_private_messages_from_visitors: nobody
  216.       anonymous: false
  217.       members_by_default: false
  218.       members_only: true
  219.   mod_muc_admin: {}
  220.   mod_offline:
  221.     access_max_user_messages: max_user_offline_messages
  222.     store_groupchat: true
  223.     store_empty_body: true
  224.   mod_ping: {}
  225.   mod_privacy: {}
  226.   mod_private: {}
  227.   mod_proxy65:
  228.     access: local
  229.     max_connections: 5
  230.   mod_pubsub:
  231.     access_createnode: pubsub_createnode
  232.     plugins:
  233.      - flat
  234.       - pep
  235.     force_node_config:
  236.       storage:bookmarks:
  237.         access_model: whitelist
  238.   mod_push:
  239.     include_body: true
  240.     include_sender: truey
  241.   mod_push_keepalive: {}
  242.   mod_register:
  243.     ip_access: trusted_network
  244.   mod_roster:
  245.     versioning: true
  246.   mod_sip: {}
  247.   mod_s2s_dialback: {}
  248.   mod_shared_roster: {}
  249.   mod_stream_mgmt:
  250.     resend_on_timeout: if_offline
  251.   mod_vcard: {}
  252.   mod_vcard_xupdate: {}
  253.   mod_version:
  254.     show_os: false
Add Comment
Please, Sign In to add comment