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:
parent
72ad673516
commit
fceb9946c8
2 changed files with 4 additions and 9 deletions
8
entrypoint.sh
Executable file
8
entrypoint.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue