Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###' LOGGING
- loglevel: 5
- log_rotate_size: 10485760
- log_rotate_date: ""
- log_rotate_count: 1
- log_rate_limit: 100
- ###. ===============
- ###' NODE PARAMETERS
- hosts:
- - "myhostname.com"
- ###. ===============
- ###' LISTENING PORTS
- listen:
- -
- port: 5222
- module: ejabberd_c2s
- certfile: "/home/centos/ejabberd-16.12/conf/server.pem"
- starttls: true
- ## To enforce TLS encryption for client connections,
- ## use this instead of the "starttls" option:
- ## starttls_required: true
- ##
- ## Custom OpenSSL options
- ##
- protocol_options:
- - "no_sslv3"
- ## - "no_tlsv1"
- max_stanza_size: 65536
- shaper: c2s_shaper
- access: c2s
- -
- port: 5269
- module: ejabberd_s2s_in
- max_stanza_size: 131072
- shaper: s2s_shaper
- port: 5280
- module: ejabberd_http
- request_handlers:
- "/websocket": ejabberd_http_ws
- ## "/pub/archive": mod_http_fileserver
- web_admin: true
- http_bind: true
- ## register: true
- captcha: false
- ###. ==============
- ###' AUTHENTICATION
- auth_method: odbc
- ###. ==============
- ###' DATABASE SETUP
- ## ejabberd by default uses the internal Mnesia database,
- ## so you do not necessarily need this section.
- ## This section provides configuration examples in case
- ## you want to use other database backends.
- ## Please consult the ejabberd Guide for details on database creation.
- ##
- ## MySQL server:
- odbc_type: mysql
- odbc_server: “localhost”
- odbc_database: "database"
- odbc_username: "user"
- odbc_password: "somepassword"
- ###. ===============
- ###' TRAFFIC SHAPERS
- shaper:
- normal: 100000
- fast: 5000000
- max_fsm_queue: 1000
- ###. ====================
- ###' ACCESS CONTROL LISTS
- acl:
- admin:
- user:
- - "admin@somedomain.com"
- local:
- user_regexp: ""
- loopback:
- ip:
- - "127.0.0.0/8"
- ##
- ## Bad XMPP servers
- ##
- ## bad_servers:
- ## server:
- ## - "xmpp.zombie.org"
- ## - "xmpp.spam.com"
- ###. ============
- ###' SHAPER RULES
- shaper_rules:
- ## Maximum number of simultaneous sessions allowed for a single user:
- max_user_sessions: 2
- ## Maximum number of offline messages that users can have:
- max_user_offline_messages:
- - 5000: admin
- - 100
- ## For C2S connections, all users except admins use the "normal" shaper
- c2s_shaper:
- - none: admin
- - fast
- ## All S2S connections use the "fast" shaper
- s2s_shaper: fast
- ###. ============
- ###' ACCESS RULES
- access_rules:
- ## This rule allows access only for local users:
- local:
- - allow: local
- ## Only non-blocked users can use c2s connections:
- c2s:
- # - deny: blocked
- - allow
- ## Only admins can send announcement messages:
- announce:
- - allow: admin
- ## Only admins can use the configuration interface:
- configure:
- - allow: admin
- ## Only accounts of the local ejabberd server can create rooms:
- muc_create:
- - allow: local
- ## Only accounts on the local ejabberd server can create Pubsub nodes:
- pubsub_createnode:
- - allow: local
- ## In-band registration allows registration of any possible username.
- ## To disable in-band registration, replace 'allow' with 'deny'.
- register:
- - allow
- ## Only allow to register from localhost
- trusted_network:
- - allow: loopback
- registration_timeout: 3
- ###. ================
- ###' DEFAULT LANGUAGE
- ##
- ## language: Default language used for server messages.
- ##
- language: "en"
- ###. =======
- ###' CAPTCHA
- ###. =======
- ###' MODULES
- ##
- ## Modules enabled in all ejabberd virtual hosts.
- ##
- modules:
- mod_adhoc: {}
- mod_admin_extra: {}
- mod_announce: # recommends mod_adhoc
- access: announce
- mod_blocking: {} # requires mod_privacy
- mod_caps: {}
- mod_carboncopy: {}
- mod_client_state: {}
- mod_configure: {} # requires mod_adhoc
- mod_disco: {}
- ## mod_echo: {}
- mod_http_bind: {}
- ## mod_http_fileserver:
- ## docroot: "/var/www"
- ## accesslog: "/home/centos/ejabberd-16.12.beta1/logs/access.log"
- ## mod_irc: {}
- mod_last: {}
- mod_muc:
- ## host: "conference.@HOST@"
- access:
- - allow
- access_admin:
- - allow: admin
- access_create: muc_create
- access_persistent: muc_create
- mod_muc_admin: {}
- ## mod_muc_log: {}
- ## mod_multicast: {}
- mod_offline:
- access_max_user_messages: max_user_offline_messages
- mod_ping: {}
- ## mod_pres_counter:
- ## count: 5
- ## interval: 60
- mod_privacy: {}
- mod_private: {}
- ## mod_proxy65: {}
- mod_pubsub:
- access_createnode: pubsub_createnode
- ## reduces resource comsumption, but XEP incompliant
- ignore_pep_from_offline: false
- ## XEP compliant, but increases resource comsumption
- ## ignore_pep_from_offline: false
- last_item_cache: false
- db_type: odbc
- plugins:
- - "flat"
- - "pep" # pep requires mod_caps
- mod_register:
- access: register
- mod_roster:
- db_type: odbc
- mod_shared_roster: {}
- ## mod_stats: {}
- ## mod_time: {}
- mod_vcard:
- db_type: odbc
- search: true
- mod_version: {}
- allow_contrib_modules: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement