omninexus-ai / entrypoint.sh
aditya9708's picture
Auto-deploy from AI Studio
e4c7604 verified
Raw History Blame Contribute Delete
348 Bytes
#!/bin/sh
# Replace the placeholder with the actual API key from environment variable if it exists
if [ -n "$GEMINI_API_KEY" ]; then
echo "Injecting GEMINI_API_KEY into JS files..."
find /usr/share/nginx/html -name "*.js" -exec sed -i "s/AIzaSyAyVva5wY2g6kmoG3bafrwf4dzM8xLrqDk/$GEMINI_API_KEY/g" {} +
fi
# Start Nginx
nginx -g "daemon off;"