Skip to content

Commit

Permalink
Add new EV: DNSROBOCERT=enable
Browse files Browse the repository at this point in the history
  • Loading branch information
rexzhang committed May 25, 2024
1 parent 14ca0f2 commit cde431b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ARG ENV
ENV DEPLOY_HOOK="/app/nginx/reload.sh"
ENV TLDEXTRACT_CACHE_PATH=/data/lexicon_tld_set
ENV DNSROBOCERT="enable"

RUN if [ "$ENV" = "rex" ]; then echo "Change depends" \
&& pip config set global.index-url http://192.168.200.26:13141/root/pypi/+simple \
Expand Down
7 changes: 6 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ done

# start plush worker
/usr/local/bin/python -m plush worker start

# start dnsrobocert service
/usr/local/bin/dnsrobocert --config /config/dnsrobocert.yml --directory /data/dnsrobocert
if [ "$DNSROBOCERT" = "enable" ]; then
/usr/local/bin/dnsrobocert --config /config/dnsrobocert.yml --directory /data/dnsrobocert;
else
python;
fi

# for dev
if [ "$ENV" = "rex" ]; then python; fi

0 comments on commit cde431b

Please sign in to comment.