My-Weekly-ToDo-List/scripts/supabase-setup.sh
mARTin 2133364e3d feat: email verification, auto-save settings, calendar UX improvements
- Email verification: 6-digit code + one-click link on signup
- SMTP integration with nodemailer (lazy-init, auto-detect TLS)
- Verify-email page with 6 input boxes, paste support, auto-submit
- Resend verification with 60s rate limiting
- Block login for unverified email accounts

- Auto-save settings: debounced 800ms save on all profile changes
- Redirect to calendar settings after OAuth connection
- Fix Google Calendar connection display after connecting
- Task actions hover toolbar: fix z-index/overflow clipping on first row
- Make day header sticky with proper stacking context
2026-02-27 08:57:15 +01:00

37 lines
1.2 KiB
Bash

#!/bash
# Setup script for Supabase via Docker on LXC/VM
# Run this on a NEW LXC/VM (Ubuntu/Debian)
# 1. Update and install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl docker.io docker-compose-v2
# 2. Clone Supabase Docker
git clone --depth 1 https://github.com/supabase/supabase
cd supabase/docker
# 3. Setup environment variables
cp .env.example .env
# Generate secure random strings for secrets
JWT_SECRET=$(openssl rand -base64 32)
ANON_KEY=$(openssl rand -base64 32)
SERVICE_ROLE_KEY=$(openssl rand -base64 32)
POSTGRES_PASSWORD=$(openssl rand -base64 16)
# Update .env (Basic replacement)
sed -i "s/JWT_SECRET=.*/JWT_SECRET=$JWT_SECRET/" .env
sed -i "s/ANON_KEY=.*/ANON_KEY=$ANON_KEY/" .env
sed -i "s/SERVICE_ROLE_KEY=.*/SERVICE_ROLE_KEY=$SERVICE_ROLE_KEY/" .env
sed -i "s/POSTGRES_PASSWORD=.*/POSTGRES_PASSWORD=$POSTGRES_PASSWORD/" .env
# 4. Start Supabase
sudo docker compose up -d
echo "--------------------------------------------------"
echo "Supabase is starting up!"
echo "Postgres Password: $POSTGRES_PASSWORD"
echo "API URL: http://$(hostname -I | awk '{print $1}'):8000"
echo "Studio (Dashboard): http://$(hostname -I | awk '{print $1}'):8001"
echo "--------------------------------------------------"