1
0
Fork 0
mirror of https://github.com/demostf/proxy synced 2026-06-04 04:24:06 +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

8
entrypoint.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
sed -e "s/\${SOURCE}/$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/nginx/conf.d/$HOST.conf
sed -e "s/\${SOURCE}/api.$HOST/" -e "s/\${TARGET}/$TARGET/" nginx.conf > /etc/nginx/conf.d/api.$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
/scripts/entrypoint.sh