-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
35 lines (28 loc) · 1.02 KB
/
.env.example
File metadata and controls
35 lines (28 loc) · 1.02 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
# Example environment configuration for StakeAPI
# Copy this file to .env and fill in your actual values
# Stake.com authentication (get these from browser developer tools)
STAKE_ACCESS_TOKEN=your_access_token_here
STAKE_SESSION_COOKIE=your_session_cookie_here
# API Configuration
STAKE_BASE_URL=https://stake.com
STAKE_TIMEOUT=30
STAKE_RATE_LIMIT=10
# Optional: Webhook settings for real-time updates
WEBHOOK_URL=https://your-webhook-endpoint.com/stake
WEBHOOK_SECRET=your_webhook_secret
# Optional: Database settings for storing data
DATABASE_URL=sqlite:///stakeapi.db
# Optional: Logging configuration
LOG_LEVEL=INFO
LOG_FILE=stakeapi.log
# Optional: Feature flags
ENABLE_WEBSOCKETS=true
ENABLE_RATE_LIMITING=true
ENABLE_CACHING=false
# How to get your tokens:
# 1. Go to stake.com and log in
# 2. Open browser developer tools (F12)
# 3. Go to Network tab
# 4. Make any action that triggers a GraphQL request
# 5. Right-click on the request → Copy as cURL
# 6. Extract the x-access-token and session cookie from the cURL command