|
@@ -5,32 +5,17 @@
|
|
###
|
|
###
|
|
### https://docs.ejabberd.im/admin/configuration
|
|
### 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.
|
|
|
|
-###
|
|
|
|
|
|
|
|
include_config_file:
|
|
include_config_file:
|
|
- /home/ejabberd/conf/conf.d/10-macros.yml
|
|
- /home/ejabberd/conf/conf.d/10-macros.yml
|
|
- /home/ejabberd/conf/conf.d/15-log.yml
|
|
- /home/ejabberd/conf/conf.d/15-log.yml
|
|
- /home/ejabberd/conf/conf.d/20-hosts.yml
|
|
- /home/ejabberd/conf/conf.d/20-hosts.yml
|
|
|
|
+ - /home/ejabberd/conf/conf.d/30-tls.yml
|
|
- /home/ejabberd/conf/conf.d/50-stun-turn.yml
|
|
- /home/ejabberd/conf/conf.d/50-stun-turn.yml
|
|
|
|
|
|
-certfiles:
|
|
|
|
-# - /home/ejabberd/conf/server.pem
|
|
|
|
- - /etc/ssl/ejabberd/*.pem
|
|
|
|
-
|
|
|
|
-#ca_file: "/home/ejabberd/conf/cacert.pem"
|
|
|
|
-
|
|
|
|
-
|
|
|
|
listen:
|
|
listen:
|
|
-
|
|
-
|
|
port: 5222
|
|
port: 5222
|
|
- ip: "::"
|
|
|
|
module: ejabberd_c2s
|
|
module: ejabberd_c2s
|
|
max_stanza_size: 262144
|
|
max_stanza_size: 262144
|
|
shaper: c2s_shaper
|
|
shaper: c2s_shaper
|
|
@@ -38,7 +23,6 @@ listen:
|
|
starttls_required: true
|
|
starttls_required: true
|
|
-
|
|
-
|
|
port: 5269
|
|
port: 5269
|
|
- ip: "::"
|
|
|
|
module: ejabberd_s2s_in
|
|
module: ejabberd_s2s_in
|
|
max_stanza_size: 524288
|
|
max_stanza_size: 524288
|
|
-
|
|
-
|
|
@@ -47,79 +31,20 @@ listen:
|
|
module: ejabberd_http
|
|
module: ejabberd_http
|
|
tls: true
|
|
tls: true
|
|
request_handlers:
|
|
request_handlers:
|
|
- "/admin": ejabberd_web_admin
|
|
|
|
- "/api": mod_http_api
|
|
|
|
|
|
+# "/admin": ejabberd_web_admin
|
|
|
|
+# "/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
|
|
- "/oauth": ejabberd_oauth
|
|
|
|
|
|
+# "/oauth": ejabberd_oauth
|
|
-
|
|
-
|
|
port: 5280
|
|
port: 5280
|
|
ip: "::"
|
|
ip: "::"
|
|
module: ejabberd_http
|
|
module: ejabberd_http
|
|
request_handlers:
|
|
request_handlers:
|
|
"/admin": ejabberd_web_admin
|
|
"/admin": ejabberd_web_admin
|
|
- -
|
|
|
|
- module: ejabberd_http
|
|
|
|
- port: 8080
|
|
|
|
- tls: false
|
|
|
|
- request_handlers:
|
|
|
|
- /.well-known/acme-challenge: ejabberd_acme
|
|
|
|
-# -
|
|
|
|
-# port: 1883
|
|
|
|
-# ip: "::"
|
|
|
|
-# module: mod_mqtt
|
|
|
|
-# backlog: 1000
|
|
|
|
- ##
|
|
|
|
- ## https://docs.ejabberd.im/admin/configuration/#stun-and-turn
|
|
|
|
- ## ejabberd_stun: Handles STUN Binding requests
|
|
|
|
- ##
|
|
|
|
- ##-
|
|
|
|
- ## port: 3478
|
|
|
|
- ## ip: "0.0.0.0"
|
|
|
|
- ## transport: udp
|
|
|
|
- ## module: ejabberd_stun
|
|
|
|
- ## use_turn: true
|
|
|
|
- ## turn_ip: "{{ IP }}"
|
|
|
|
- ## auth_type: user
|
|
|
|
- ## auth_realm: "example.com"
|
|
|
|
- ##-
|
|
|
|
- ## port: 3478
|
|
|
|
- ## ip: "0.0.0.0"
|
|
|
|
- ## module: ejabberd_stun
|
|
|
|
- ## use_turn: true
|
|
|
|
- ## turn_ip: "{{ IP }}"
|
|
|
|
- ## auth_type: user
|
|
|
|
- ## auth_realm: "example.com"
|
|
|
|
- ##-
|
|
|
|
- ## port: 5349
|
|
|
|
- ## ip: "0.0.0.0"
|
|
|
|
- ## module: ejabberd_stun
|
|
|
|
- ## certfile: "/home/ejabberd/conf/server.pem"
|
|
|
|
- ## tls: true
|
|
|
|
- ## use_turn: true
|
|
|
|
- ## turn_ip: "{{ IP }}"
|
|
|
|
- ## auth_type: user
|
|
|
|
- ## auth_realm: "example.com"
|
|
|
|
- ##
|
|
|
|
- ## https://docs.ejabberd.im/admin/configuration/#sip
|
|
|
|
- ## To handle SIP (VOIP) requests:
|
|
|
|
- ##
|
|
|
|
- ##-
|
|
|
|
- ## port: 5060
|
|
|
|
- ## ip: "0.0.0.0"
|
|
|
|
- ## transport: udp
|
|
|
|
- ## module: ejabberd_sip
|
|
|
|
- ##-
|
|
|
|
- ## port: 5060
|
|
|
|
- ## ip: "0.0.0.0"
|
|
|
|
- ## module: ejabberd_sip
|
|
|
|
- ##-
|
|
|
|
- ## port: 5061
|
|
|
|
- ## ip: "0.0.0.0"
|
|
|
|
- ## module: ejabberd_sip
|
|
|
|
- ## tls: true
|
|
|
|
|
|
+
|
|
|
|
|
|
s2s_use_starttls: optional
|
|
s2s_use_starttls: optional
|
|
|
|
|
|
@@ -152,35 +77,6 @@ access_rules:
|
|
trusted_network:
|
|
trusted_network:
|
|
allow: loopback
|
|
allow: loopback
|
|
|
|
|
|
-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
|
|
|
|
-
|
|
|
|
shaper:
|
|
shaper:
|
|
normal:
|
|
normal:
|
|
rate: 3000
|
|
rate: 3000
|
|
@@ -198,14 +94,9 @@ shaper_rules:
|
|
s2s_shaper: fast
|
|
s2s_shaper: fast
|
|
|
|
|
|
|
|
|
|
-acme:
|
|
|
|
- contact: "mailto:dcs-acme-vc.s-up.net@s-up.org"
|
|
|
|
-# ca_url: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
- ca_url: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
-
|
|
|
|
modules:
|
|
modules:
|
|
mod_adhoc: {}
|
|
mod_adhoc: {}
|
|
- mod_admin_extra: {}
|
|
|
|
|
|
+# mod_admin_extra: {}
|
|
mod_announce:
|
|
mod_announce:
|
|
access: announce
|
|
access: announce
|
|
mod_avatar: {}
|
|
mod_avatar: {}
|
|
@@ -228,7 +119,7 @@ modules:
|
|
## db_type: sql
|
|
## db_type: sql
|
|
assume_mam_usage: true
|
|
assume_mam_usage: true
|
|
default: never
|
|
default: never
|
|
- mod_mqtt: {}
|
|
|
|
|
|
+# mod_mqtt: {}
|
|
mod_muc:
|
|
mod_muc:
|
|
access:
|
|
access:
|
|
- allow
|
|
- allow
|
|
@@ -261,16 +152,9 @@ modules:
|
|
access_model: whitelist
|
|
access_model: whitelist
|
|
mod_push: {}
|
|
mod_push: {}
|
|
mod_push_keepalive: {}
|
|
mod_push_keepalive: {}
|
|
- mod_register:
|
|
|
|
- ## Only accept registration requests from the "trusted"
|
|
|
|
- ## network (see access_rules section above).
|
|
|
|
- ## Think twice before enabling registration from any
|
|
|
|
- ## address. See the Jabber SPAM Manifesto for details:
|
|
|
|
- ## https://github.com/ge0rg/jabber-spam-fighting-manifesto
|
|
|
|
- ip_access: trusted_network
|
|
|
|
mod_roster:
|
|
mod_roster:
|
|
versioning: true
|
|
versioning: true
|
|
- mod_sip: {}
|
|
|
|
|
|
+# mod_sip: {}
|
|
mod_s2s_dialback: {}
|
|
mod_s2s_dialback: {}
|
|
mod_shared_roster: {}
|
|
mod_shared_roster: {}
|
|
mod_stream_mgmt:
|
|
mod_stream_mgmt:
|