Update default configuration to comply with new validator

pull/45/head
Christophe Romain 5 years ago
parent 912a26ee11
commit daf101c930

@ -12,23 +12,10 @@
### ******* 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.
### However, ejabberd treats different literals as different types:
###
### - unquoted or single-quoted strings. They are called "atoms".
### Example: dog, 'Jupiter', '3.14159', YELLOW
###
### - numeric literals. Example: 3, -45.0, .0
###
### - quoted or folded strings.
### Examples of quoted string: "Lizzard", "orange".
### Example of folded string:
### > Art thou not Romeo,
### and a Montague?
### ###
language: "en"
hosts: hosts:
- "localhost" - localhost
loglevel: 4 loglevel: 4
log_rotate_size: 10485760 log_rotate_size: 10485760
@ -37,14 +24,14 @@ log_rotate_count: 1
log_rate_limit: 100 log_rate_limit: 100
certfiles: certfiles:
- "/home/ejabberd/conf/server.pem" - /home/ejabberd/conf/server.pem
ca_file: "/home/ejabberd/conf/cacert.pem" ca_file: "/home/ejabberd/conf/cacert.pem"
# When using let's encrypt to generate certificates ## When using let's encrypt to generate certificates
##certfiles: ##certfiles:
## - "/etc/letsencrypt/live/localhost/cert.pem" ## - /etc/letsencrypt/live/localhost/fullchain.pem
## - "/etc/letsencrypt/live/localhost/privkey.pem" ## - /etc/letsencrypt/live/localhost/privkey.pem
## ##
##ca_file: "/etc/letsencrypt/live/localhost/fullchain.pem" ##ca_file: "/etc/letsencrypt/live/localhost/fullchain.pem"
@ -94,31 +81,29 @@ acl:
user_regexp: "" user_regexp: ""
loopback: loopback:
ip: ip:
- "127.0.0.0/8" - 127.0.0.0/8
- "::1/128" - ::1/128
- "::FFFF:127.0.0.1/128" - ::FFFF:127.0.0.1/128
admin: admin:
user: user:
- "admin@localhost" - "admin@localhost"
access_rules: access_rules:
local: local:
- allow: local allow: local
c2s: c2s:
- deny: blocked deny: blocked
- allow 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
register:
- allow
trusted_network: trusted_network:
- allow: loopback allow: loopback
api_permissions: api_permissions:
"console commands": "console commands":
@ -128,26 +113,26 @@ api_permissions:
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: 1000 normal: 1000
@ -156,11 +141,11 @@ shaper:
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 100: all
c2s_shaper: c2s_shaper:
- none: admin none: admin
- normal normal: all
s2s_shaper: fast s2s_shaper: fast
max_fsm_queue: 10000 max_fsm_queue: 10000
@ -185,15 +170,15 @@ modules:
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
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: never
mod_mqtt: {} mod_mqtt: {}
mod_muc: mod_muc:
access: access:
@ -202,9 +187,11 @@ modules:
- allow: admin - allow: admin
access_create: muc_create access_create: muc_create
access_persistent: muc_create access_persistent: muc_create
access_mam:
- allow
default_room_options: default_room_options:
allow_subscription: true # enable MucSub allow_subscription: true # enable MucSub
## mam: true mam: false
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
@ -217,11 +204,11 @@ modules:
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: {}

Loading…
Cancel
Save