-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.conf.example
More file actions
126 lines (99 loc) · 4.27 KB
/
Copy pathdeploy.conf.example
File metadata and controls
126 lines (99 loc) · 4.27 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
# AstrBot Firefly Blog Manager - 部署脚本配置文件
# =============================================================================
# 复制此文件为 deploy.conf 并填写实际值
# 部署脚本会自动配置 Nginx 或 Apache,并支持 SSL 证书
# =============================================================================
# ----------------------------------------
# 部署模式 (必填)
# ----------------------------------------
# 可选值: local_only | local_build | remote_build
# local_only: 博客和 AstrBot 在同一台机器
# local_build: 本地构建,SSH 部署到远端服务器
# remote_build: 在远端服务器直接构建部署
DEPLOY_MODE=local_only
# ----------------------------------------
# 博客目录 (必填)
# ----------------------------------------
# Firefly 博客项目的根目录(包含 package.json)
LOCAL_BLOG_ROOT=/var/www/firefly
# ----------------------------------------
# 部署目录
# ----------------------------------------
# 构建产物部署到的目录(通常与博客目录相同)
WEB_ROOT=/var/www/firefly
# ----------------------------------------
# 域名配置 (可选,但推荐填写)
# ----------------------------------------
# 你的博客域名,用于自动配置 Web 服务器
DOMAIN_NAME=blog.example.com
# 是否启用 HTTPS (true/false)
ENABLE_HTTPS=false
# SSL 证书路径 (ENABLE_HTTPS=true 时必填)
# 请填写你的 SSL 证书文件的绝对路径
SSL_CERT_PATH=/etc/ssl/certs/your_domain.crt
# SSL 证书密钥路径 (ENABLE_HTTPS=true 时必填)
# 请填写你的 SSL 证书密钥文件的绝对路径
SSL_CERT_KEY_PATH=/etc/ssl/private/your_domain.key
# ----------------------------------------
# Web 服务器配置 (可选)
# ----------------------------------------
# 可选值: nginx | apache | none
# nginx: 使用 Nginx 作为 Web 服务器
# apache: 使用 Apache 作为 Web 服务器
# none: 不自动配置 Web 服务器,只复制文件
WEB_SERVER=nginx
# Nginx 配置模板路径 (可选,留空使用默认模板)
# 如果你有自定义的 Nginx 配置模板,填入路径
NGINX_CONFIG_TEMPLATE=
# Apache 虚拟主机配置路径 (可选)
# Apache 虚拟主机配置文件路径
APACHE_VHOST_CONFIG=
# ----------------------------------------
# 远端服务器配置 (local_build/remote_build 模式)
# ----------------------------------------
SERVER_IP=
SERVER_PORT=22
USERNAME=
# 认证方式: key | password
AUTH_TYPE=key
# SSH 私钥路径 (AUTH_TYPE=key 时填写)
PRIVATE_KEY_PATH=/home/user/.ssh/id_ed25519
# SSH 密码 (AUTH_TYPE=password 时填写)
PASSWORD=
# 远端博客目录 (remote_build 模式)
REMOTE_BLOG_ROOT=/var/www/firefly
# 远端部署目录
REMOTE_WEB_ROOT=/var/www/firefly
# ----------------------------------------
# 高级选项
# ----------------------------------------
# GitHub 镜像 (国内用户可使用镜像加速克隆)
# 留空时自动依次尝试内置镜像(ghfast.top / gh-proxy.com / ghproxy.net),
# 全部失败后回退官方地址,每个源最多等待 GIT_CLONE_TIMEOUT 秒
GITHUB_MIRROR=
# 一键启用国内网络加速(推荐国内用户设为 1):
# 1. 克隆自动尝试内置 GitHub 镜像
# 2. npm/pnpm 自动使用 npmmirror 镜像源(可被 NPM_REGISTRY 覆盖)
USE_CN_MIRROR=0
# 自定义 npm/pnpm 镜像源,留空用官方源(USE_CN_MIRROR=1 时自动为 npmmirror)
# 示例: NPM_REGISTRY=https://registry.npmmirror.com
NPM_REGISTRY=
# git 克隆深度(1=浅克隆最快;0=完整克隆)
CLONE_DEPTH=1
# 单个克隆源最多等待秒数(防止网络不通时无限卡住)
GIT_CLONE_TIMEOUT=120
# 远程命令总超时秒数(remote_build 模式,构建慢时可调大)
REMOTE_CMD_TIMEOUT=3600
# 1 = 跳过所有交互确认(资源告警等),非交互终端自动生效
AUTO_YES=0
# 是否自动备份旧版本 (true/false)
AUTO_BACKUP=true
# 备份保留天数
BACKUP_RETENTION_DAYS=7
# ----------------------------------------
# 资源警告配置 (可选)
# ----------------------------------------
# CPU 使用率警告阈值 (百分比),超过此值会显示警告
RESOURCE_WARNING_CPU=80
# 内存使用率警告阈值 (百分比),超过此值会显示警告
RESOURCE_WARNING_MEM=85