commit 7f8c09f1df20a9241f4bcdf0058e6f5d8124b001 parent 028c6f27764bc7b814ee1c1b04bc3ca1d9cc9092 Author: MTRNord <mtrnord1@gmail.com> Date: Thu, 16 May 2024 22:52:58 +0200 Setup ACL Diffstat:
| M | apps/base/ejabberd/release.yaml | | | 39 | ++++++++++++++++++++++++++++++++++++++- |
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/apps/base/ejabberd/release.yaml b/apps/base/ejabberd/release.yaml @@ -63,7 +63,44 @@ spec: ip: "::" module: ejabberd_c2s tls: true - + acl: + local: + user_regexp: "" + loopback: + ip: + - 127.0.0.0/8 + - ::1/128 + admin: + user: mtrnord@xmpp.midnightthoughts.space + api_permissions: + admin access: + what: + - '*' + - '!stop' + - '!start' + who: + access: + allow: + - acl: loopback + - acl: admin + oauth: + access: + allow: + - acl: loopback + - acl: admin + scope: ejabberd:admin + console commands: + from: + - ejabberd_ctl + - mod_http_api + what: '*' + who: all + public commands: + what: + - status + - connected_users_number + who: + ip: 127.0.0.1/8 image: repository: "mtrnord/cluster/ejabberd" pullPolicy: Always