Skip to content

Commit

Permalink
Copy configuration from ejabberd upstream (#120)
Browse files Browse the repository at this point in the history
This applies the following changes from ejabberd upstream into ecs:
- Removed obsolete options log_*
- Added legacy port 5223
- Removed unnecessary IPv6 address in loopback acl
- Removed max_fsm_queue toplevel option which was set to default value
- Added mod_muc_occupantid, available since ejabberd 23.10

Those elements remain specific for this ecs image:
- Path to certificates generated for this image
- ACME remains disabled
- oauth enabled in X listener
- STUN and SIP disabled, with example configuration commented
- Admin access granted to admin account
- MUC/Sub enabled in default room options
  • Loading branch information
badlop committed Jan 23, 2025
1 parent bcbc96e commit dc13b8a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ecs/conf/ejabberd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ hosts:
- localhost

loglevel: info
log_rotate_size: 10485760
log_rotate_date: ""
log_rotate_count: 1
log_rate_limit: 100

certfiles:
- /home/ejabberd/conf/server.pem
Expand All @@ -44,6 +40,14 @@ listen:
shaper: c2s_shaper
access: c2s
starttls_required: true
-
port: 5223
ip: "::"
module: ejabberd_c2s
max_stanza_size: 262144
shaper: c2s_shaper
access: c2s
tls: true
-
port: 5269
ip: "::"
Expand Down Expand Up @@ -133,7 +137,6 @@ acl:
ip:
- 127.0.0.0/8
- ::1/128
- ::FFFF:127.0.0.1/128
admin:
user:
- "admin@localhost"
Expand Down Expand Up @@ -203,8 +206,6 @@ shaper_rules:
normal: all
s2s_shaper: fast

max_fsm_queue: 10000

acme:
contact: "mailto:[email protected]"
ca_url: "https://acme-staging-v02.api.letsencrypt.org/directory"
Expand Down Expand Up @@ -252,6 +253,7 @@ modules:
allow_subscription: true # enable MucSub
mam: true
mod_muc_admin: {}
mod_muc_occupantid: {}
mod_offline:
access_max_user_messages: max_user_offline_messages
mod_ping: {}
Expand Down

0 comments on commit dc13b8a

Please sign in to comment.