forked from ANYTECHS/clips-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (55 loc) · 2.24 KB
/
.env.example
File metadata and controls
68 lines (55 loc) · 2.24 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
DATABASE_URL="postgresql://postgres:password@localhost:5432/clipscash?schema=public"
# JWT
JWT_SECRET="your_jwt_secret"
JWT_EXPIRES=3600
JWT_REFRESH_EXPIRES_DAYS=14
# Google OAuth
GOOGLE_CLIENT_ID="your_google_client_id"
GOOGLE_CLIENT_SECRET="your_google_client_secret"
GOOGLE_CALLBACK_URL="http://localhost:3000/auth/google/callback"
# Magic link / Email (SMTP)
APP_BASE_URL="http://localhost:3000"
SMTP_HOST="smtp.ethereal.email"
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER="your_smtp_user"
SMTP_PASS="your_smtp_pass"
SMTP_FROM='"Clips App" <noreply@clips.app>'
# CORS
ALLOWED_ORIGINS="http://localhost:3000,http://localhost:3001"
# Redis Configuration
REDIS_HOST="localhost"
REDIS_PORT=6379
REDIS_PASSWORD=""
# Brute Force Protection
BRUTE_FORCE_MAX_ATTEMPTS=5
BRUTE_FORCE_LOCKOUT_DURATION=900
BRUTE_FORCE_WINDOW_DURATION=900
# Rate Limiting
# Comma-separated list of IP addresses to bypass rate limiting
THROTTLER_WHITELIST=127.0.0.1,::1
# JWT Cookie Settings
# Set to 'true' to use httpOnly cookies instead of returning tokens in the response body.
# COOKIE_SECURE: set to 'false' only in local HTTP dev environments (defaults to true)
# COOKIE_SAME_SITE: 'lax' (recommended), 'strict', or 'none' (requires COOKIE_SECURE=true)
COOKIE_SECURE=true
COOKIE_SAME_SITE=lax
# Stellar Network
# Set to 'testnet' for development/staging or 'public' for mainnet.
# Defaults to 'testnet' if not set.
STELLAR_NETWORK=testnet
# Minimum Stellar payout amount in USD equivalent.
# Payouts below this value are rejected to avoid wasting fees on micro-transactions.
# Defaults to 5 if not set.
# Stellar NFT Royalties
PLATFORM_ROYALTY_BPS=100
PLATFORM_WALLET_ADDRESS="GDV76E6XN6A3Q3WXVZ4KPRQ7L6E6XN6A3Q3WXVZ4KPRQ7L6E6XN6"
# Soroban NFT Contract
# This contract implements NFT minting with royalty payments and platform fee tracking.
# The contract maintains a persistent 'total_platform_fees' variable that accumulates
# all platform fees (5% of each sale) from royalty payments.
# Query platform revenue via: GET /platform/revenue (public endpoint)
SOROBAN_NFT_CONTRACT_ID="CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEU4"
# IPFS / Pinata (required for NFT metadata upload)
PINATA_JWT="your_pinata_jwt_token"
# IPFS_API_URL="https://api.pinata.cloud/pinning/pinJSONToIPFS" # default