mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-12 23:36:55 +08:00
14 lines
347 B
Bash
14 lines
347 B
Bash
#!/bin/sh
|
|
# Nginx startup wrapper - substitutes PORT environment variable
|
|
|
|
# Default PORT to 8080 if not set
|
|
export PORT=${PORT:-8080}
|
|
|
|
echo "🌐 Starting nginx on port $PORT..."
|
|
|
|
# Generate nginx config from template
|
|
envsubst '${PORT}' < /etc/nginx/nginx.conf.template > /etc/nginx/http.d/default.conf
|
|
|
|
# Start nginx
|
|
exec nginx -g "daemon off;"
|