ki-frontend/configure.sh
Mic Szillat 7bba73ceae
Some checks failed
continuous-integration/drone/pr Build is failing
🔧 Configure KI API URL from environment
With an entrypoint script, fill the configuration template from an
environment variable containing the KI API URL.
2024-01-12 19:12:18 +01:00

11 lines
195 B
Bash
Executable File

#!/bin/bash
set -o errexit
set +x
: ${KI_API_URL:=http://ki-backend:5000}
sed -e "s%\$KI_API_URL%$KI_API_URL%g" /usr/share/nginx/html/config.js.in > /usr/share/nginx/html/config.js
exec "$@"