-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.env.example
More file actions
27 lines (23 loc) · 1.03 KB
/
Copy path.env.example
File metadata and controls
27 lines (23 loc) · 1.03 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
# Relive 环境变量配置
# JWT 密钥(生产环境必须修改)
JWT_SECRET=relive-production-secret-please-change-me
# 服务端口(单镜像架构,统一端口)
RELIVE_PORT=8080
# 外部访问地址(可选,但推荐在需要 analyzer / 反向代理 / 域名访问时设置)
# RELIVE_EXTERNAL_URL=https://photos.example.com
# =============================================================================
# 关于照片路径配置
# =============================================================================
#
# 直接运行 Go 程序时:
# 不需要配置照片路径,系统启动后在 Web 界面添加扫描路径即可
#
# Docker 部署时:
# 照片路径配置在 docker-compose.yml 的 volumes 部分
# 修改方法:
# 1. 编辑 docker-compose.yml
# 2. 找到 volumes 下的照片目录挂载配置
# 3. 修改冒号左边的宿主机路径为你实际的照片目录
# 4. 例如:- /Users/david/Pictures:/app/photos:ro
#
# =============================================================================