set ttl
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# A container for PyBitmessage daemon
|
# A container for PyBitmessage daemon
|
||||||
FROM ubuntu:bionic-20220401
|
FROM ubuntu:bionic-20220401
|
||||||
|
|
||||||
|
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
@@ -46,11 +48,15 @@ USER bitmessage
|
|||||||
RUN pybitmessage -t
|
RUN pybitmessage -t
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
ENTRYPOINT sed -ie "s|\(apiinterface = \).*|\10\.0\.0\.0|g" keys.dat \
|
CMD sed -i -e "s|\(apiinterface = \).*|\10\.0\.0\.0|g" \
|
||||||
#&& sed -ie "s|\(apivariant = \).*|\1json|g" keys.dat \
|
#-e "s|\(apivariant = \).*|\1json|g" \
|
||||||
&& sed -ie "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" keys.dat \
|
-e "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" \
|
||||||
&& sed -ie "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" keys.dat \
|
-e "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" \
|
||||||
&& exec pybitmessage -d
|
-e "s|\(apienabled = \).*|\1True|g" \
|
||||||
|
-e "s|\(ttl = \).*|\1172800|g" \
|
||||||
|
-e "s|\(upnp = \).*|\1False|g" \
|
||||||
|
-e "s|\(udp = \).*|\1False|g" keys.dat \
|
||||||
|
&& exec pybitmessage -d
|
||||||
|
|
||||||
# Generate Deterministic address
|
# Generate Deterministic address
|
||||||
HEALTHCHECK --retries=3 --interval=15s \
|
HEALTHCHECK --retries=3 --interval=15s \
|
||||||
|
|||||||
Reference in New Issue
Block a user