1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Container: Enable CTL_OVER_HTTP by default

This commit is contained in:
Badlop 2025-01-08 13:46:42 +01:00
parent e887546c27
commit 105a0c2029
2 changed files with 9 additions and 0 deletions

View file

@ -120,6 +120,8 @@ RUN export PEM=$HOME/conf/server.pem \
-days 3650 \
-subj "/CN=localhost"
RUN sed -i 's|^#CTL_OVER_HTTP=|CTL_OVER_HTTP=|' "$HOME/conf/ejabberdctl.cfg"
RUN home_root_dir=$(echo $HOME | sed 's|\(.*\)/.*|\1 |') \
&& setcap 'cap_net_bind_service=+ep' $(find $home_root_dir -name beam.smp) \
&& echo -e \

View file

@ -89,6 +89,13 @@ listen:
module: ejabberd_http
request_handlers:
/: ejabberd_web_admin
-
port: "unix:sockets/ctl_over_http.sock"
module: ejabberd_http
unix_socket:
mode: '0600'
request_handlers:
/ctl: ejabberd_ctl
-
port: PORT_STUN
ip: "::"