Created
January 3, 2020 10:18
-
-
Save Bonjour123/5319c5803a6fed7ccd2658edac06e6c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
###' ejabberd configuration file | |
### | |
### The parameters used in this configuration file are explained at | |
### | |
### https://docs.ejabberd.im/admin/configuration | |
### | |
### The configuration file is written in YAML. | |
### ******************************************************* | |
### ******* !!! WARNING !!! ******* | |
### ******* YAML IS INDENTATION SENSITIVE ******* | |
### ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY ******* | |
### ******************************************************* | |
### Refer to http://en.wikipedia.org/wiki/YAML for the brief description. | |
### | |
hosts: | |
- "window-PC" | |
loglevel: 4 | |
log_rotate_size: 10485760 | |
log_rotate_date: "" | |
log_rotate_count: 1 | |
log_rate_limit: 100 | |
certfiles: | |
- "C:/ProgramData/ejabberd/conf/server.pem" | |
## - "/etc/letsencrypt/live/localhost/fullchain.pem" | |
## - "/etc/letsencrypt/live/localhost/privkey.pem" | |
ca_file: "C:/ProgramData/ejabberd/conf/cacert.pem" | |
listen: | |
- | |
port: 5222 | |
module: ejabberd_c2s | |
max_stanza_size: 262144 | |
shaper: c2s_shaper | |
access: c2s | |
starttls_required: true | |
- | |
port: 5269 | |
module: ejabberd_s2s_in | |
max_stanza_size: 524288 | |
- | |
port: 5443 | |
module: ejabberd_http | |
tls: true | |
request_handlers: | |
"/admin": ejabberd_web_admin | |
"/api": mod_http_api | |
"/bosh": mod_bosh | |
"/captcha": ejabberd_captcha | |
"/upload": mod_http_upload | |
"/ws": ejabberd_http_ws | |
"/oauth": ejabberd_oauth | |
- | |
port: 5280 | |
module: ejabberd_http | |
request_handlers: | |
"/admin": ejabberd_web_admin | |
"/ws": ejabberd_http_ws | |
"/bosh": mod_bosh | |
"/api": mod_http_api | |
- | |
port: 1883 | |
module: mod_mqtt | |
backlog: 1000 | |
s2s_use_starttls: optional | |
acl: | |
local: | |
user_regexp: "" | |
loopback: | |
ip: | |
- 127.0.0.0/8 | |
admin: | |
user: | |
- "admin@window-PC" | |
s2s_access: s2s | |
access_rules: | |
local: | |
allow: local | |
c2s: | |
deny: blocked | |
allow: all | |
announce: | |
allow: admin | |
configure: | |
allow: admin | |
muc_create: | |
allow: local | |
pubsub_createnode: | |
allow: local | |
trusted_network: | |
allow: loopback | |
## Do not establish S2S connections with bad servers | |
## If you enable this you also have to uncomment "s2s_access: s2s" | |
s2s: | |
- deny: | |
all | |
- allow | |
api_permissions: | |
"console commands": | |
from: | |
- ejabberd_ctl | |
who: all | |
what: "*" | |
"admin access": | |
who: | |
access: | |
allow: | |
acl: loopback | |
acl: admin | |
oauth: | |
scope: "ejabberd:admin" | |
access: | |
allow: | |
acl: loopback | |
acl: admin | |
what: | |
- "*" | |
- "!stop" | |
- "!start" | |
"public commands": | |
who: | |
ip: 127.0.0.1/8 | |
what: | |
- status | |
- connected_users_number | |
- "*" | |
- "!stop" | |
- "!start" | |
shaper: | |
normal: 1000 | |
fast: 50000 | |
shaper_rules: | |
max_user_sessions: 10 | |
max_user_offline_messages: | |
5000: admin | |
100: all | |
c2s_shaper: | |
none: admin | |
normal: all | |
s2s_shaper: fast | |
max_fsm_queue: 10000 | |
acme: | |
contact: "mailto:admin@window-PC" | |
ca_url: "https://acme-v01.api.letsencrypt.org" | |
modules: | |
mod_muc: | |
host: "muc.@HOST@" | |
default_room_options: | |
allow_subscription: true | |
persistent: true | |
mod_admin_extra: {} | |
mod_muc_admin: {} | |
mod_http_api: {} | |
mod_mam: | |
default: always | |
cache_size: 1000 | |
cache_life_time: 3600 | |
### Local Variables: | |
### mode: yaml | |
### End: | |
### vim: set filetype=yaml tabstop=8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment