focus/frontend/run.sh

9 lines
426 B
Bash
Raw Normal View History

2024-01-11 16:32:48 +01:00
PUBLIC_BACKEND_URL=${PUBLIC_BACKEND_URL:-http://localhost:3000}
2024-01-12 13:00:55 +01:00
PUBLIC_BACKEND_WSURL=${PUBLIC_BACKEND_WSURL:-${PUBLIC_BACKEND_URL/http:/ws:}}
PUBLIC_BACKEND_WSURL=${PUBLIC_BACKEND_WSURL/https:/wss:}
2024-01-11 16:32:48 +01:00
2024-02-01 13:23:03 +01:00
find /usr/share/nginx/html -type f -exec sed -i "s|http://localhost:3000|$PUBLIC_BACKEND_URL|g" {} +
find /usr/share/nginx/html -type f -exec sed -i "s|ws://localhost:3000|$PUBLIC_BACKEND_WSURL|g" {} +
2024-01-11 16:32:48 +01:00
nginx -g 'daemon off;'