mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
29 lines
920 B
Bash
Executable File
29 lines
920 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Email to RSS setup script
|
|
|
|
echo "🚀 Setting up Email to RSS service..."
|
|
|
|
# Install dependencies
|
|
echo "📦 Installing dependencies..."
|
|
npm install
|
|
|
|
# Create KV namespaces
|
|
echo "🗄️ Creating KV namespaces..."
|
|
echo "You'll need to update wrangler.toml with these IDs."
|
|
npx wrangler kv:namespace create EMAIL_STORAGE
|
|
npx wrangler kv:namespace create EMAIL_STORAGE --preview
|
|
|
|
# Set up admin password
|
|
echo "🔐 Setting up admin password..."
|
|
read -p "Enter admin password: " admin_password
|
|
echo "$admin_password" | npx wrangler secret put ADMIN_PASSWORD
|
|
|
|
# Prompt for domain
|
|
read -p "Enter your domain (e.g., yourdomain.com): " domain
|
|
echo "📝 Please update your domain in wrangler.toml"
|
|
|
|
echo "✅ Setup complete! Next steps:"
|
|
echo "1. Update wrangler.toml with your KV namespace IDs and domain"
|
|
echo "2. Set up MX records for your domain with ForwardEmail.net"
|
|
echo "3. Deploy with 'npm run deploy'" |