-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
54 lines (41 loc) · 1.45 KB
/
.env.example
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
# Twitter API configurations
TWITTER_API_KEY=your_twitter_api_key
TWITTER_API_SECRET_KEY=your_twitter_api_secret_key
TWITTER_ACCESS_TOKEN=your_twitter_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret
# For Twitter API v2 Oauth
TWITTER_BEARER_TOKEN=your_twitter_bearer_token
# Reddit API configurations
REDDIT_CLIENT_ID=your_reddit_client_id
REDDIT_CLIENT_SECRET=your_reddit_client_secret
REDDIT_USER_AGENT="TopPostsSearch/0.1 by rarestzhou"
# GitHub API Token, see: https://github.com/settings/tokens
GITHUB_API_TOKEN=your_github_api_token
# GOOGLE APPLICATION CREDENTIALS
GOOGLE_APPLICATION_CREDENTIALS=your_google_application_credentials_file_path
# Rate limiting
RATELIMIT_DEFAULT="100 per day, 20 per hour"
RATELIMIT_STRATEGY="moving-window"
# Cache settings
CACHE_TYPE=redis
CACHE_REDIS_URL="redis://localhost:6379"
REDIS_URL="redis://localhost:6379/0"
CACHE_DEFAULT_TIMEOUT=600
# Hot keywords for cache preheating
HOT_KEYWORDS=your_hot_kw
# Flask debug mode, dev:True, prod:False
DEBUG_MODE=True
# API settings
API_TITLE="Cross Platforms Posts Search API V1"
API_VERSION="1.0"
API_DESCRIPTION="An API for searching posts across multiple platforms"
# Scheduler settings
SCHEDULER_API_ENABLED=True
# Platforms to search (comma-separated)
DEFAULT_PLATFORMS="reddit,hackernews,github,v2ex,theresanaiforthat"
# Performance monitoring
ENABLE_PERFORMANCE_MONITORING=True
# Logging level
LOG_LEVEL=INFO
# enable pytest, dev:True, prod:False
TESTING=True