-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
79 lines (62 loc) · 2.54 KB
/
.env.example
File metadata and controls
79 lines (62 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Event Launchpad - Environment Variables
## Required Environment Variables
Copy this file to `.env` in the root directory and fill in your values.
```bash
# ============================================
# Supabase Configuration
# ============================================
PUBLIC_SUPABASE_URL=https://your-project.supabase.co
PUBLIC_SUPABASE_ANON_KEY=your_anon_key_here
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here
SUPABASE_WALLET_LOGIN_FUNCTION_URL=https://your-project.supabase.co/functions/v1/wallet-login
# ============================================
# Session & Authentication
# ============================================
# Generate with: openssl rand -hex 32
SESSION_SECRET=your_32_byte_hex_string_here
# Optional - only if using custom JWT
# JWT_SECRET=your_jwt_secret
# ============================================
# Redis (Upstash) - Nonce Storage
# ============================================
UPSTASH_REDIS_REST_URL="https://your-redis.upstash.io"
UPSTASH_REDIS_REST_TOKEN="your_redis_token_here"
# ============================================
# Twitter OAuth (Optional)
# ============================================
TWITTER_CLIENT_ID=your_twitter_client_id
TWITTER_CLIENT_SECRET=your_twitter_client_secret
# ============================================
# Discord OAuth & Bot (Optional)
# ============================================
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
DISCORD_BOT_TOKEN=your_discord_bot_token
# ============================================
# Telegram Bot (Optional)
# ============================================
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
# ============================================
# Node Environment
# ============================================
NODE_ENV=development
```
## Setup Instructions
1. **Supabase**: Create a project at https://supabase.com
- Get URL and keys from Settings > API
- Set up wallet login edge function
2. **Session Secret**: Generate a secure random string
```bash
openssl rand -hex 32
```
3. **Redis**: Create database at https://upstash.com
- Get REST URL and token from dashboard
4. **Social Auth** (Optional): Only needed if enabling social login
- Twitter: https://developer.twitter.com
- Discord: https://discord.com/developers
- Telegram: Create bot via @BotFather
## Security Notes
- **NEVER** commit `.env` file to version control
- Use different secrets for development and production
- Keep `SUPABASE_SERVICE_ROLE_KEY` secret - server-side only
- `PUBLIC_SUPABASE_ANON_KEY` can be exposed to client