This commit is contained in:
2023-01-30 16:40:45 +03:00
parent 90bee00bae
commit a7fc096d4f

View File

@@ -27,6 +27,8 @@ ENV BITMESSAGE_API_USER=api
ENV BITMESSAGE_API_PASSWORD=changeme
ENV BITMESSAGE_SEED_PHRASE=changeme
ENV BITMESSAGE_SEED_ADDRESSES=1
ENV BITMESSAGE_API_PORT=8442
ENV TTL=172800
ENV HOME /home/bitmessage
ENV BITMESSAGE_HOME ${HOME}
@@ -49,12 +51,12 @@ RUN pybitmessage -t
# Setup environment
CMD sed -i -e "s|\(apiinterface = \).*|\10\.0\.0\.0|g" \
#-e "s|\(apivariant = \).*|\1json|g" \
#&& -e "s|\(apivariant = \).*|\1json|g" \
-e "s|\(apiusername = \).*|\1$BITMESSAGE_API_USER|g" \
-e "s|\(apipassword = \).*|\1$BITMESSAGE_API_PASSWORD|g" \
-e "s|\(apiport = \).*|\1$BITMESSAGE_API_PORT|g" \
-e "s|\(apienabled = \).*|\1True|g" \
-e "s|\(ttl = \).*|\1172800|g" \
-e "s|\(upnp = \).*|\1False|g" \
-e "s|\(ttl = \).*|\1$TTL|g" \
-e "s|\(udp = \).*|\1False|g" keys.dat \
&& exec pybitmessage -d