Initial import
This commit is contained in:
15
jvb/rootfs/etc/cont-init.d/10-config
Normal file
15
jvb/rootfs/etc/cont-init.d/10-config
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ ! -f /config/sip-communicator.properties ]]; then
|
||||
cp /defaults/sip-communicator.properties /config
|
||||
sed -i \
|
||||
-e "s,\${XMPP_DOMAIN},$XMPP_DOMAIN,g" \
|
||||
-e "s,\${JICOFO_AUTH_USER},$JICOFO_AUTH_USER,g" \
|
||||
-e "s#\${JVB_STUN_SERVERS}#$JVB_STUN_SERVERS#g" \
|
||||
/config/sip-communicator.properties
|
||||
fi
|
||||
|
||||
if [[ ! -f /config/logging.properties ]]; then
|
||||
cp /defaults/logging.properties /config
|
||||
fi
|
||||
|
||||
8
jvb/rootfs/etc/services.d/jvb/run
Normal file
8
jvb/rootfs/etc/services.d/jvb/run
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/ -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=config -Djava.util.logging.config.file=/config/logging.properties"
|
||||
DAEMON=/usr/share/jitsi-videobridge/jvb.sh
|
||||
DAEMON_OPTS="--domain=$XMPP_DOMAIN --host=$XMPP_SERVER --port=5347 --secret=$JVB_COMPONENT_SECRET"
|
||||
|
||||
exec s6-setuidgid jvb /bin/bash -c "JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON $DAEMON_OPTS"
|
||||
|
||||
Reference in New Issue
Block a user