ideas-generator/docker/scripts/frontend-entrypoint.sh
DJP e61d472d68 🔧 Fix line endings in shell scripts for cross-platform compatibility
- Convert CRLF to LF line endings in all shell scripts
- Ensure all scripts are executable
- Fixes 'bad interpreter' error on Unix systems
- Scripts now work on macOS, Linux, and WSL
2025-09-09 18:13:22 -04:00

21 lines
No EOL
527 B
Bash
Executable file

#!/bin/sh
# Ideas Generator 2025 - Frontend Entrypoint Script
# Substitutes environment variables in nginx configuration
set -e
# Default values
export NGINX_HOST=${NGINX_HOST:-localhost}
echo "🚀 Configuring nginx for Ideas Generator 2025..."
echo " Host: $NGINX_HOST"
# Substitute environment variables in nginx config
envsubst '${NGINX_HOST}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
echo "✅ Nginx configuration completed"
# Test nginx configuration
nginx -t
echo "🌐 Starting nginx server..."