2025-07-11 14:16:34 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# Set default backend URL if not provided
|
2025-07-18 14:19:36 +01:00
|
|
|
VITE_API_BASE_URL=${VITE_API_BASE_URL:-"http://backend:8080"}
|
2025-07-11 14:16:34 +01:00
|
|
|
|
|
|
|
|
# Replace the placeholder in nginx.conf with the actual backend URL
|
2025-07-18 14:19:36 +01:00
|
|
|
sed -i "s|\${VITE_API_BASE_URL}|${VITE_API_BASE_URL}|g" /etc/nginx/nginx.conf
|
2025-07-11 14:16:34 +01:00
|
|
|
|
|
|
|
|
# Start nginx
|
2025-11-05 11:44:59 +00:00
|
|
|
exec nginx -g "daemon off;"
|