1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +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:
Badlop 2025-01-16 11:44:37 +01:00
parent 74d6d53ac6
commit fa4a93c465
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ RUN export PEM=$HOME/conf/server.pem \
-days 3650 \ -days 3650 \
-subj "/CN=localhost" -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 |') \ RUN home_root_dir=$(echo $HOME | sed 's|\(.*\)/.*|\1 |') \
&& setcap 'cap_net_bind_service=+ep' $(find $home_root_dir -name beam.smp) \ && setcap 'cap_net_bind_service=+ep' $(find $home_root_dir -name beam.smp) \

View file

@ -90,7 +90,7 @@ listen:
request_handlers: request_handlers:
/: ejabberd_web_admin /: ejabberd_web_admin
- -
port: "unix:sockets/ctl_over_http.sock" port: "unix:../sockets/ctl_over_http.sock"
module: ejabberd_http module: ejabberd_http
unix_socket: unix_socket:
mode: '0600' mode: '0600'