1
0
Fork 0
mirror of https://github.com/demostf/proxy synced 2026-06-03 12:04:07 +02:00

use custon entrypoint instead of startup script to run earlier

This commit is contained in:
Robin Appelman 2020-01-04 14:23:09 +01:00
commit fceb9946c8
2 changed files with 4 additions and 9 deletions

View file

@ -1,3 +1,5 @@
FROM staticfloat/nginx-certbot FROM staticfloat/nginx-certbot
COPY nginx.conf / COPY nginx.conf /
COPY configs.sh /scripts/startup/ COPY entrypoint.sh /
CMD ["/bin/bash", "/entrypoint.sh"]

View file

@ -5,11 +5,4 @@ sed -e "s/\${SOURCE}/api.$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/ng
sed -e "s/\${SOURCE}/static.$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/nginx/conf.d/static.$HOST.conf sed -e "s/\${SOURCE}/static.$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/nginx/conf.d/static.$HOST.conf
sed -e "s/\${SOURCE}/sync.$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/nginx/conf.d/sync.$HOST.conf sed -e "s/\${SOURCE}/sync.$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/nginx/conf.d/sync.$HOST.conf
. /scripts/util.sh /scripts/entrypoint.sh
auto_enable_configs
echo "waiting a bit"
sleep 5
/scripts/run_certbot.sh
nginx -s reload