forked from yaotutu/folder2podcast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
136 lines (109 loc) · 4.45 KB
/
Copy path.env.example
File metadata and controls
136 lines (109 loc) · 4.45 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# ============================================
# Folder2Podcast 环境变量配置模板
# ============================================
# 复制此文件为 .env 并根据实际情况修改
# 后端服务器端口
PORT=3100
# 前端开发服务器端口(仅开发模式使用,生产环境下前端由后端服务)
VITE_PORT=3200
# 服务器基础 URL(重要!)
# 用于生成 RSS feed 中的音频链接和图片链接
# 开发环境示例: http://localhost:3100
# 局域网示例: http://192.168.1.100:3100
# 公网访问示例: http://your-domain.com 或 https://your-domain.com
BASE_URL=http://localhost:3100
# 音频文件根目录(绝对路径,仅本地存储模式有效)
# 开发环境示例: /Users/your-name/Desktop/audio_books
# 生产环境示例: /podcasts
AUDIO_DIR=./audio
# Episode shownotes verbosity:
# - title: only episode title
# - full: include file info + links + attachments (pdf/etc) when available
EPISODE_SHOWNOTES=full
# Inline attachments inside show notes (content:encoded):
# - none: links only
# - images: inline images (jpg/png/webp) + links
# - all: inline images + inline text notes (md/txt) + links
EPISODE_INLINE_ATTACHMENTS=all
# Max chars to inline from md/txt attachments
EPISODE_INLINE_TEXT_MAX_CHARS=8000
# Remote cover fetching (best-effort, cached under .covers/):
REMOTE_COVER_ENABLED=true
REMOTE_COVER_PROVIDER=itunes # itunes|none
REMOTE_COVER_COUNTRY=cn
REMOTE_COVER_TTL_DAYS=30
REMOTE_COVER_TIMEOUT_MS=8000
# 管理员认证(可选,用于保护写操作)
# 留空则不启用认证(访客可以执行所有操作)
# 设置后,写操作需要提供用户名和密码
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin123
# Node 环境(development/production)
NODE_ENV=development
# ============================================
# 存储模式配置
# ============================================
# 存储模式:local(本地存储)或 s3(S3 对象存储)
# 默认:local
STORAGE_MODE=local
# ============================================
# S3 存储配置(仅当 STORAGE_MODE=s3 时需要)
# ============================================
# S3 端点地址
# 示例(七牛云华东):https://s3-cn-east-1.qiniucs.com
# 示例(阿里云 OSS 华东1):https://oss-cn-hangzhou.aliyuncs.com
# 示例(腾讯云 COS 广州):https://cos.ap-guangzhou.myqcloud.com
# 示例(MinIO 本地部署):http://localhost:9000
# S3_ENDPOINT=https://s3-cn-east-1.qiniucs.com
# S3 区域(默认 us-east-1)
# 七牛云:cn-east-1, cn-south-1, cn-north-1
# 阿里云 OSS:cn-hangzhou, cn-shanghai, cn-beijing
# 腾讯云 COS:ap-guangzhou, ap-shanghai, ap-beijing
# S3_REGION=cn-east-1
# S3 Bucket 名称
# S3_BUCKET=your-bucket-name
# S3 访问密钥 ID(Access Key ID)
# S3_ACCESS_KEY_ID=your-access-key-id
# S3 访问密钥(Secret Access Key)
# S3_SECRET_ACCESS_KEY=your-secret-access-key
# S3 公开访问 URL(用于生成文件的公开链接)
# 如果使用了自定义域名或 CDN,请配置此项
# 如果不配置,默认使用 S3_ENDPOINT
# 示例(七牛云自定义域名):https://cdn.yourdomain.com
# 示例(阿里云 OSS 自定义域名):https://cdn.yourdomain.com
# S3_PUBLIC_URL=https://cdn.yourdomain.com
# S3 Bucket 内路径前缀(可选)
# 如果一个 Bucket 被多个应用共享,可以使用前缀隔离
# 示例:folder2podcast
# S3_BUCKET_PREFIX=folder2podcast
# ============================================
# 七牛云 S3 配置示例
# ============================================
# STORAGE_MODE=s3
# S3_ENDPOINT=https://s3-cn-east-1.qiniucs.com
# S3_REGION=cn-east-1
# S3_BUCKET=my-podcast-bucket
# S3_ACCESS_KEY_ID=your_qiniu_access_key
# S3_SECRET_ACCESS_KEY=your_qiniu_secret_key
# S3_PUBLIC_URL=https://your-custom-domain.com
# S3_BUCKET_PREFIX=folder2podcast
# ============================================
# 阿里云 OSS 配置示例
# ============================================
# STORAGE_MODE=s3
# S3_ENDPOINT=https://oss-cn-hangzhou.aliyuncs.com
# S3_REGION=cn-hangzhou
# S3_BUCKET=my-podcast-bucket
# S3_ACCESS_KEY_ID=your_aliyun_access_key_id
# S3_SECRET_ACCESS_KEY=your_aliyun_access_key_secret
# S3_PUBLIC_URL=https://your-custom-domain.com
# ============================================
# MinIO 本地部署配置示例
# ============================================
# STORAGE_MODE=s3
# S3_ENDPOINT=http://localhost:9000
# S3_REGION=us-east-1
# S3_BUCKET=podcasts
# S3_ACCESS_KEY_ID=minioadmin
# S3_SECRET_ACCESS_KEY=minioadmin
# S3_PUBLIC_URL=http://localhost:9000