Skip to content

Commit 01b2060

Browse files
committed
XMR: add environment variables for configuring socket addresses and ports.
1 parent a776f7d commit 01b2060

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ ENV XMR_QUEUE_SIZE=10
1111
ENV XMR_IPV6PUBSUPPORT=false
1212
ENV XMR_RELAY_OLD_MESSAGES=false
1313
ENV XMR_RELAY_MESSAGES=false
14+
ENV XMR_SOCKETS_WS=0.0.0.0:8080
15+
ENV XMR_SOCKETS_API=0.0.0.0:8081
16+
ENV XMR_SOCKETS_ZM_PORT=9505
1417

1518
RUN apt-get update && apt-get install -y libzmq3-dev git \
1619
&& rm -rf /var/lib/apt/lists/*

entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright (C) 2024 Xibo Signage Ltd
4+
# Copyright (C) 2025 Xibo Signage Ltd
55
#
66
# Xibo - Digital Signage - https://xibosignage.com
77
#
@@ -24,9 +24,9 @@
2424
# Write config.json
2525
echo '{' > /opt/xmr/config.json
2626
echo ' "sockets": {' >> /opt/xmr/config.json
27-
echo ' "ws": "0.0.0.0:8080",' >> /opt/xmr/config.json
28-
echo ' "api": "0.0.0.0:8081",' >> /opt/xmr/config.json
29-
echo ' "zmq": ["tcp://*:9505"]' >> /opt/xmr/config.json
27+
echo ' "ws": "'$XMR_SOCKETS_WS'",' >> /opt/xmr/config.json
28+
echo ' "api": "'$XMR_SOCKETS_API'",' >> /opt/xmr/config.json
29+
echo ' "zmq": ["tcp://*:'$XMR_SOCKETS_ZM_PORT'"]' >> /opt/xmr/config.json
3030
echo ' },' >> /opt/xmr/config.json
3131
echo ' "queuePoll": '$XMR_QUEUE_POLL',' >> /opt/xmr/config.json
3232
echo ' "queueSize": '$XMR_QUEUE_SIZE',' >> /opt/xmr/config.json

0 commit comments

Comments
 (0)