FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
animeAPI/.env.example at master · binaryYuki/animeAPI · GitHub
binaryYuki
/
animeAPI
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
84
Code
Issues
0
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
animeAPI
/
.env.example
Copy path
More file actions
More file actions
Latest commit
History
History
History
81 lines (70 loc) · 2.62 KB
Breadcrumbs
animeAPI
/
.env.example
Copy path
File metadata and controls
81 lines (70 loc) · 2.62 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
80
#
==========================================
#
日志配置 / Logging Configuration
#
==========================================
#
日志级别: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL
=
ERROR
#
==========================================
#
存储后端配置 / Storage Backend Configuration
#
==========================================
#
是否使用 Redis(true/false)
#
true: 优先尝试连接 Redis
#
false: 直接使用内存 KV 存储(纯 relay 模式)
USE_REDIS
=
true
#
Redis 连接失败时是否自动降级到内存 KV(true/false)
#
true: Redis 连接失败时自动使用内存 KV 存储
#
false: Redis 连接失败时直接报错退出
FALLBACK_TO_MEMORY
=
true
#
==========================================
#
Redis 连接配置 / Redis Connection Configuration
#
==========================================
#
方法1: 使用完整的 Redis 连接字符串(优先级高)
#
REDIS_CONN=redis://default:password@localhost:6379/0
#
方法2: 使用单个参数配置(如果 REDIS_CONN 未设置)
REDIS_HOST
=
localhost
REDIS_PORT
=
6379
REDIS_DB
=
0
REDIS_PASSWORD
=
#
==========================================
#
推送服务配置 / Push Server Configuration
#
==========================================
#
推送服务器地址(可选)
PUSH_SERVER_URL
=
#
==========================================
#
会话和安全配置 / Session & Security Configuration
#
==========================================
#
会话密钥(用于 JWT 令牌生成和验证)
#
如未设置,将自动生成随机值
SESSION_SECRET
=
your-secret-key-here
#
==========================================
#
构建和部署信息 / Build & Deployment Info
#
==========================================
#
Git 提交 ID(用于版本标识)
COMMIT_ID
=
#
构建时间戳
BUILD_AT
=
#
==========================================
#
开发调试配置 / Debug Configuration
#
==========================================
#
调试模式: true 启用调试(允许所有 CORS,跳过某些检查)
#
false 生产模式(严格的 CORS 规则和安全检查)
DEBUG
=
false
#
==========================================
#
使用示例 / Usage Examples
#
==========================================
#
#
1. 完整 Redis 模式(推荐生产环境)
#
USE_REDIS=true
#
FALLBACK_TO_MEMORY=true
#
REDIS_HOST=redis.example.com
#
REDIS_PORT=6379
#
REDIS_PASSWORD=your-password
#
#
2. 纯内存模式(无 Redis,本地开发)
#
USE_REDIS=false
#
# 数据存储在内存中,应用重启后丢失
#
#
3. Redis 优先 + 自动降级(推荐)
#
USE_REDIS=true
#
FALLBACK_TO_MEMORY=true
#
# 如果 Redis 连接失败,自动使用内存存储
#
Back
|
FazBrowse Home
|
New Git URL