-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
41 lines (31 loc) · 1.17 KB
/
Copy pathenv.example
File metadata and controls
41 lines (31 loc) · 1.17 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
# Docker Pull 应用环境变量配置文件
# 复制此文件为 .env 并根据需要修改配置
#===========================================
# 应用基本配置
#===========================================
# API 服务器配置
API_HOST=0.0.0.0
API_PORT=8000
CORS_ORIGINS=*
DOWNLOADS_DIR=./downloads
# 前端配置
REACT_APP_API_URL=/api
REACT_APP_STATIC_URL=/static
PORT=3000
REACT_APP_AUTH_PASSWORD=admin123
#===========================================
# 代理配置(超简单)
#===========================================
# 如果需要代理,只需要设置这一个变量
# DOCKER_PROXY=http://proxy.example.com:8080
# Docker 镜像仓库镜像(可选,用于加速下载)
# DOCKER_REGISTRY_MIRROR=https://mirror.aliyuncs.com
#===========================================
# 使用说明
#===========================================
# 1. 如果需要代理:
# - 取消注释 DOCKER_PROXY 并设置为您的代理地址
# - 如果需要认证:DOCKER_PROXY=http://user:pass@proxy.com:8080
# 2. 如果不需要代理(默认):
# - 保持 DOCKER_PROXY 注释状态
# 注意:容器启动时会自动从 DOCKER_PROXY 生成所有需要的代理环境变量