Stirling-PDF/docker/frontend/entrypoint.sh
Anthony Stirling cba59a77ab remove monolith
2025-07-17 12:18:57 +01:00

10 lines
304 B
Bash

#!/bin/sh
# Set default backend URL if not provided
VITE_API_BASE_URL=${VITE_API_BASE_URL:-"http://backend:8080"}
# Replace the placeholder in nginx.conf with the actual backend URL
sed -i "s|\${VITE_API_BASE_URL}|${VITE_API_BASE_URL}|g" /etc/nginx/nginx.conf
# Start nginx
exec nginx -g "daemon off;"