mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Container: Enable CTL_OVER_HTTP by default
This commit is contained in:
parent
e887546c27
commit
105a0c2029
2 changed files with 9 additions and 0 deletions
2
.github/container/Dockerfile
vendored
2
.github/container/Dockerfile
vendored
|
@ -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 \
|
||||
|
|
7
.github/container/ejabberd.yml.example
vendored
7
.github/container/ejabberd.yml.example
vendored
|
@ -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: "::"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue