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:
parent
72ad673516
commit
fceb9946c8
2 changed files with 4 additions and 9 deletions
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue