-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.env
135 lines (105 loc) · 3.65 KB
/
config.env
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
######################################
# 域名及证书
######################################
# 语言设置 (默认中文:zh-CN)
# DEFAULT_LOCALE=en
# 网站外观(默认浅色:light)
# ZEALOT_APPEARANCE=dark
# 域名,比如 zealot.com,无需加 http:// 或 https:// 前缀
# ZEALOT_DOMAIN=
# Let's Encrypt 注册电子邮箱(和自签名证书文件名二选一,不能同时设置)
# ZEALOT_CERT_EMAIL=
# 自签名证书文件名(和 Let's Encrypt 注册电子邮箱名二选一,不能同时设置)
# ZEALOT_CERT=
# ZEALOT_CERT_KEY=
# Force SSL setting and do not ask when running ./deploy
# Can be one of "letsencrypt", "self-signed", or "false"
# ZEALOT_FORCE_SSL=false
# Port to use if SSL is disabled
# ZEALOT_NO_SSL_PORT=80
######################################
# 账户
######################################
# 默认生成的管理员账户和密码
ZEALOT_ADMIN_PASSWORD=ze@l0t
# 是否开启游客模式 (无需登录即可浏览绝大部分内部服务)
ZEALOT_GUEST_MODE=false
# 是否开放注册功能
ZEALOT_REGISTER_ENABLED=true
######################################
# 第三方一键登录
######################################
## 飞书
# 配置教程:https://zealot.ews.im/docs/self-hosted/configuration/third-party-authentication#feishu-lark
FEISHU_ENABLED=true
FEISHU_APP_ID=
FEISHU_APP_SECRET=
## Gitlab
# 配置教程:https://zealot.ews.im/docs/self-hosted/configuration/third-party-authentication#gitlab
GITLAB_ENABLED=true
GITLAB_SITE=https://gitlab.com/api/v4
GITLAB_SCOPE=read_user
GITLAB_APP_ID=
GITLAB_SECRET=
## Google OAuth
# 配置教程:https://zealot.ews.im/docs/self-hosted/configuration/third-party-authentication#google
GOOGLE_OAUTH_ENABLED=false
GOOGLE_CLIENT_ID=
GOOGLE_SECRET=
## LDAP
# 配置教程:https://zealot.ews.im/docs/self-hosted/configuration/third-party-authentication#ldap
LDAP_ENABLED=false
LDAP_HOST=10.0.0.1
LDAP_PORT=389
LDAP_METHOD=plain
LDAP_BIND_DN="cn=Manager,dc=example,dc=com"
LDAP_PASSWORD=password
LDAP_BASE="ou=People,dc=example,dc=com"
LDAP_UID=uid
######################################
# 发送邮件
######################################
# SMTP
SMTP_DOMAIN=zealot.com
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_PASSWORD=your_app_password
SMTP_AUTH_METHOD=plain
SMTP_ENABLE_STARTTLS=true
# 邮件默认收发人
######################################
# 定时任务
######################################
# 保留所有上传应用,否则会定期清理上传的应用(调试文件除外)
# 清理规则参见:https://zealot.ews.im/#/configuration
# ZEALOT_KEEP_UPLOADS=true
######################################
# 统计
######################################
# Google Analytics 统计
GOOGLE_ANALYTICS_ID=
# 匿名错误上报
ZEALOT_SENTRY_DISABLE=false
######################################
# 开发使用变量 (非开发者请忽略下面)
######################################
# Docker Compose 项目名(建议保留不变)
COMPOSE_PROJECT_NAME=zealot
# 加密密钥,建议使用 openssl 或者 rails secret 生成
SECRET_KEY_BASE=
# Puma 外部控制 API
PUMA_CONTROL_URL=0.0.0.0:9293
PUMA_CONTROL_URL_TOKEN=zealot
# The database name will automatically get the Rails environment appended to it
# such as: zealot_development or zealot_production.
ZEALOT_POSTGRES_HOST=postgres
ZEALOT_POSTGRES_PORT=5432
ZEALOT_POSTGRES_USERNAME=postgres
ZEALOT_POSTGRES_PASSWORD=ze@l0t
ZEALOT_POSTGRES_DB_NAME=zealot
# Or use URL format
ZEALOT_DATABASE_URL=postgresql://zealot:ze%40l0t@postgres:5432/zealot?sslmode=disable