24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02:00

ejabber.yml

This commit is contained in:
Aslogbenaslambe 2023-12-22 04:05:54 +01:00 committed by GitHub
parent bdb513a660
commit 49c1462368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,240 +1,240 @@
### ###
### ejabberd configuration file ### ejabberd configuration file
### ###
### The parameters used in this configuration file are explained at ### The parameters used in this configuration file are explained at
### ###
### https://docs.ejabberd.im/admin/configuration ### https://docs.ejabberd.im/admin/configuration
### ###
### The configuration file is written in YAML. ### The configuration file is written in YAML.
### ******************************************************* ### *******************************************************
### ******* !!! WARNING !!! ******* ### ******* !!! WARNING !!! *******
### ******* YAML IS INDENTATION SENSITIVE ******* ### ******* YAML IS INDENTATION SENSITIVE *******
### ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY ******* ### ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY *******
### ******************************************************* ### *******************************************************
### Refer to http://en.wikipedia.org/wiki/YAML for the brief description. ### Refer to http://en.wikipedia.org/wiki/YAML for the brief description.
### ###
hosts: hosts:
- localhost - localhost
loglevel: info loglevel: info
## If you already have certificates, list them here ## If you already have certificates, list them here
# certfiles: # certfiles:
# - /etc/letsencrypt/live/domain.tld/fullchain.pem # - /etc/letsencrypt/live/domain.tld/fullchain.pem
# - /etc/letsencrypt/live/domain.tld/privkey.pem # - /etc/letsencrypt/live/domain.tld/privkey.pem
listen: listen:
- -
port: 5222 port: 5222
ip: "::" ip: "::"
module: ejabberd_c2s module: ejabberd_c2s
max_stanza_size: 262144 max_stanza_size: 262144
shaper: c2s_shaper shaper: c2s_shaper
access: c2s access: c2s
starttls_required: true starttls_required: true
- -
port: 5223 port: 5223
ip: "::" ip: "::"
module: ejabberd_c2s module: ejabberd_c2s
max_stanza_size: 262144 max_stanza_size: 262144
shaper: c2s_shaper shaper: c2s_shaper
access: c2s access: c2s
tls: true tls: true
- -
port: 5269 port: 5269
ip: "::" ip: "::"
module: ejabberd_s2s_in module: ejabberd_s2s_in
max_stanza_size: 524288 max_stanza_size: 524288
shaper: s2s_shaper shaper: s2s_shaper
- -
port: 5443 port: 5443
ip: "::" ip: "::"
module: ejabberd_http module: ejabberd_http
tls: true tls: true
request_handlers: request_handlers:
/admin: ejabberd_web_admin /admin: ejabberd_web_admin
/api: mod_http_api /api: mod_http_api
/bosh: mod_bosh /bosh: mod_bosh
/captcha: ejabberd_captcha /captcha: ejabberd_captcha
/upload: mod_http_upload /upload: mod_http_upload
/ws: ejabberd_http_ws /ws: ejabberd_http_ws
- -
port: 5280 port: 5280
ip: "::" ip: "::"
module: ejabberd_http module: ejabberd_http
request_handlers: request_handlers:
/admin: ejabberd_web_admin /admin: ejabberd_web_admin
/.well-known/acme-challenge: ejabberd_acme /.well-known/acme-challenge: ejabberd_acme
- -
port: 3478 port: 3478
ip: "::" ip: "::"
transport: udp transport: udp
module: ejabberd_stun module: ejabberd_stun
use_turn: true use_turn: true
## The server's public IPv4 address: ## The server's public IPv4 address:
# turn_ipv4_address: "203.0.113.3" # turn_ipv4_address: "203.0.113.3"
## The server's public IPv6 address: ## The server's public IPv6 address:
# turn_ipv6_address: "2001:db8::3" # turn_ipv6_address: "2001:db8::3"
- -
port: 1883 port: 1883
ip: "::" ip: "::"
module: mod_mqtt module: mod_mqtt
backlog: 1000 backlog: 1000
s2s_use_starttls: optional s2s_use_starttls: optional
acl: acl:
local: local:
user_regexp: "" user_regexp: ""
loopback: loopback:
ip: ip:
- 127.0.0.0/8 - 127.0.0.0/8
- ::1/128 - ::1/128
access_rules: access_rules:
local: local:
allow: local allow: local
c2s: c2s:
deny: blocked deny: blocked
allow: all allow: all
announce: announce:
allow: admin allow: admin
configure: configure:
allow: admin allow: admin
muc_create: muc_create:
allow: local allow: local
pubsub_createnode: pubsub_createnode:
allow: local allow: local
trusted_network: trusted_network:
allow: loopback allow: loopback
api_permissions: api_permissions:
"console commands": "console commands":
from: from:
- ejabberd_ctl - ejabberd_ctl
who: all who: all
what: "*" what: "*"
"admin access": "admin access":
who: who:
access: access:
allow: allow:
- acl: loopback - acl: loopback
- acl: admin - acl: admin
oauth: oauth:
scope: "ejabberd:admin" scope: "ejabberd:admin"
access: access:
allow: allow:
- acl: loopback - acl: loopback
- acl: admin - acl: admin
what: what:
- "*" - "*"
- "!stop" - "!stop"
- "!start" - "!start"
"public commands": "public commands":
who: who:
ip: 127.0.0.1/8 ip: 127.0.0.1/8
what: what:
- status - status
- connected_users_number - connected_users_number
shaper: shaper:
normal: normal:
rate: 3000 rate: 3000
burst_size: 20000 burst_size: 20000
fast: 100000 fast: 100000
shaper_rules: shaper_rules:
max_user_sessions: 10 max_user_sessions: 10
max_user_offline_messages: max_user_offline_messages:
5000: admin 5000: admin
100: all 100: all
c2s_shaper: c2s_shaper:
none: admin none: admin
normal: all normal: all
s2s_shaper: fast s2s_shaper: fast
modules: modules:
mod_adhoc: {} mod_adhoc: {}
mod_admin_extra: {} mod_admin_extra: {}
mod_announce: mod_announce:
access: announce access: announce
mod_avatar: {} mod_avatar: {}
mod_blocking: {} mod_blocking: {}
mod_bosh: {} mod_bosh: {}
mod_caps: {} mod_caps: {}
mod_carboncopy: {} mod_carboncopy: {}
mod_client_state: {} mod_client_state: {}
mod_configure: {} mod_configure: {}
mod_disco: {} mod_disco: {}
mod_fail2ban: {} mod_fail2ban: {}
mod_http_api: {} mod_http_api: {}
mod_http_upload: mod_http_upload:
put_url: https://@HOST@:5443/upload put_url: https://@HOST@:5443/upload
custom_headers: custom_headers:
"Access-Control-Allow-Origin": "https://@HOST@" "Access-Control-Allow-Origin": "https://@HOST@"
"Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS" "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
"Access-Control-Allow-Headers": "Content-Type" "Access-Control-Allow-Headers": "Content-Type"
mod_last: {} mod_last: {}
mod_mam: mod_mam:
## Mnesia is limited to 2GB, better to use an SQL backend ## Mnesia is limited to 2GB, better to use an SQL backend
## For small servers SQLite is a good fit and is very easy ## For small servers SQLite is a good fit and is very easy
## to configure. Uncomment this when you have SQL configured: ## to configure. Uncomment this when you have SQL configured:
## db_type: sql ## db_type: sql
assume_mam_usage: true assume_mam_usage: true
default: always default: always
mod_mqtt: {} mod_mqtt: {}
mod_muc: mod_muc:
access: access:
- allow - allow
access_admin: access_admin:
- allow: admin - allow: admin
access_create: muc_create access_create: muc_create
access_persistent: muc_create access_persistent: muc_create
access_mam: access_mam:
- allow - allow
default_room_options: default_room_options:
mam: true mam: true
mod_muc_admin: {} mod_muc_admin: {}
mod_offline: mod_offline:
access_max_user_messages: max_user_offline_messages access_max_user_messages: max_user_offline_messages
mod_ping: {} mod_ping: {}
mod_privacy: {} mod_privacy: {}
mod_private: {} mod_private: {}
mod_proxy65: mod_proxy65:
access: local access: local
max_connections: 5 max_connections: 5
mod_pubsub: mod_pubsub:
access_createnode: pubsub_createnode access_createnode: pubsub_createnode
plugins: plugins:
- flat - flat
- pep - pep
force_node_config: force_node_config:
## Avoid buggy clients to make their bookmarks public ## Avoid buggy clients to make their bookmarks public
storage:bookmarks: storage:bookmarks:
access_model: whitelist access_model: whitelist
mod_push: {} mod_push: {}
mod_push_keepalive: {} mod_push_keepalive: {}
mod_register: mod_register:
## Only accept registration requests from the "trusted" ## Only accept registration requests from the "trusted"
## network (see access_rules section above). ## network (see access_rules section above).
## Think twice before enabling registration from any ## Think twice before enabling registration from any
## address. See the Jabber SPAM Manifesto for details: ## address. See the Jabber SPAM Manifesto for details:
## https://github.com/ge0rg/jabber-spam-fighting-manifesto ## https://github.com/ge0rg/jabber-spam-fighting-manifesto
ip_access: trusted_network ip_access: trusted_network
mod_roster: mod_roster:
versioning: true versioning: true
mod_s2s_dialback: {} mod_s2s_dialback: {}
mod_shared_roster: {} mod_shared_roster: {}
mod_stream_mgmt: mod_stream_mgmt:
resend_on_timeout: if_offline resend_on_timeout: if_offline
mod_stun_disco: {} mod_stun_disco: {}
mod_vcard: {} mod_vcard: {}
mod_vcard_xupdate: {} mod_vcard_xupdate: {}
mod_version: mod_version:
show_os: false show_os: false
### Local Variables: ### Local Variables:
### mode: yaml ### mode: yaml
### End: ### End:
### vim: set filetype=yaml tabstop=8 ### vim: set filetype=yaml tabstop=8