✨ feat(frontend): add support for BACKEND_URL environment variable in nginx.conf to configure backend URL 📝 chore(frontend): add start-nginx.sh script to replace placeholder in nginx.conf with actual BACKEND_URL and start nginx
8 lines
176 B
Bash
8 lines
176 B
Bash
#!/bin/sh
|
|
|
|
# Replace the placeholder with the actual value
|
|
sed -i "s|__BACKEND_URL__|$BACKEND_URL|g" /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
# Start nginx
|
|
exec nginx -g 'daemon off;'
|