mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Container: Place sockets/ outside database/
The socket file is useless outside the container, and also database/ may get mounted as volume, and can't handle socket file
This commit is contained in:
parent
74d6d53ac6
commit
fa4a93c465
2 changed files with 2 additions and 2 deletions
2
.github/container/Dockerfile
vendored
2
.github/container/Dockerfile
vendored
|
@ -102,7 +102,7 @@ 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 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) \
|
||||
|
|
2
.github/container/ejabberd.yml.example
vendored
2
.github/container/ejabberd.yml.example
vendored
|
@ -90,7 +90,7 @@ listen:
|
|||
request_handlers:
|
||||
/: ejabberd_web_admin
|
||||
-
|
||||
port: "unix:sockets/ctl_over_http.sock"
|
||||
port: "unix:../sockets/ctl_over_http.sock"
|
||||
module: ejabberd_http
|
||||
unix_socket:
|
||||
mode: '0600'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue