openreader/docker-entrypoint.sh
Richard R 9ba20c8a9e feat(auth): add user authentication and rate limiting
- Implement user sign-in, sign-up, and account management using better-auth
- Add rate limiting for TTS API with daily character limits for authenticated and anonymous users
- Integrate SQLite and PostgreSQL database support for user sessions and data persistence
- Update UI components to include authentication flows, user menu, and privacy popup
- Modify Dockerfile and package.json for new dependencies and entrypoint script
- Bump version to v1.3.0
2026-01-24 17:36:11 -07:00

11 lines
224 B
Bash
Executable file

#!/bin/sh
set -e
# Run migrations if we have the SQLite file path set or default
if [ -z "$POSTGRES_URL" ]; then
echo "Running SQLite migrations..."
npx @better-auth/cli migrate -y
fi
# Start the application
exec "$@"