mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01:00
10 lines
280 B
Bash
10 lines
280 B
Bash
#!/bin/sh
|
|
|
|
# Set default backend URL if not provided
|
|
BACKEND_URL=${BACKEND_URL:-"http://backend:8080"}
|
|
|
|
# Replace the placeholder in nginx.conf with the actual backend URL
|
|
sed -i "s|\${BACKEND_URL}|${BACKEND_URL}|g" /etc/nginx/nginx.conf
|
|
|
|
# Start nginx
|
|
exec nginx -g "daemon off;" |