-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.env.example
155 lines (110 loc) · 2.97 KB
/
.env.example
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# CI_INCLUDE="gogs registry mysql redis nginx"
CI_INCLUDE="gogs registry mysql redis"
CI_DEBUG=true
# CI_DEBUG=false
CI_GIT_TYPE=gogs
# CI_GIT_TYPE=github
# CI_GIT_TYPE=gitlab
# CI_GIT_TYPE=production
#
# 使用外部的 MySQL Redis (高级选项)
#
CI_EXTERNAL_MYSQL_HOST=
CI_EXTERNAL_MYSQL_PORT=3306
CI_EXTERNAL_MYSQL_USERNAME=
CI_EXTERNAL_MYSQL_PASSWORD=
CI_EXTERNAL_MYSQL_DATABASE=gogs
CI_EXTERNAL_REDIS_HOST=
CI_EXTERNAL_REDIS_PORT=6379
#
# Port
#
CI_DRONE_PORT=8000
CI_GOGS_PORT=3000
CI_GOGS_SSH_PORT=8022
CI_REGISTRY_PORT=5000
# set open db and cache port
CI_REDIS_PORT=16379
CI_MYSQL_PORT=13306
################################################################################
#
# 基于端口版
#
CI_HOST=
# CI_HOST=192.168.199.100
# TLS only
CI_DOMAIN=
# CI_DOMAIN=t.khs1994.com
# Drone 网站将为 drone.CI_DOMAIN
# gogs 网站将为 git.CI_DOMAIN
################################################################################
#
# [Gogs]
#
CI_MAIL_HOST=
CI_MAIL_FROM=
CI_MAIL_USERNAME=
CI_MAIL_PASSWORD=
#
# [Registry]
#
WEBHOOKS_HOST=
REDIS_HOST=redis:6379
################################################################################
#
# [Drone] https://docs.drone.io/server/reference/
#
DRONE_RPC_SECRET=secret
#
# [Drone Gogs] https://docs.drone.io/server/provider/gogs/
#
DRONE_GIT_ALWAYS_AUTH=false
#
# [Drone GitHub] https://docs.drone.io/server/provider/github/
#
DRONE_GITHUB_SERVER=https://github.com
DRONE_GITHUB_CLIENT_ID=
DRONE_GITHUB_CLIENT_SECRET=
# https://docs.drone.io/server/reference/drone-user-create/
# Drone 启动时创建的账户
# 可以将此账户设置为 [管理员账户](https://docs.drone.io/server/user/admin/)
# 只有管理员账户所属的仓库才可以启用 `Trusted` 选项(使用 volumes 等特权指令)
# 设置此变量请将 USERNAME 替换为自己的 (github 用户名或 gogs 用户名)
# 或者参考 https://docs.drone.io/server/user/admin/ 使用 CLI 设置管理员
DRONE_USER_CREATE=
# DRONE_USER_CREATE=username:USERNAME,admin:true
# DRONE_USER_CREATE=username:khs1994,machine:false,admin:true,token:$(openssl rand -hex 16)
# https://docs.drone.io/server/reference/drone-user-filter/
# https://docs.drone.io/server/user/registration/
# Drone 允许哪些用户注册
# 值可以是用户名或组织名
DRONE_USER_FILTER=
# DRONE_USER_FILTER=khs1994,github
#
# [Drone GitLab] https://docs.drone.io/server/provider/gitlab/
#
DRONE_GITLAB_CLIENT_ID=
DRONE_GITLAB_CLIENT_SECRET=
DRONE_GITLAB_SERVER=
#
# [Drone docker runner]
#
DRONE_RUNNER_NAME=
DRONE_UI_DISABLED=true
# DRONE_UI_DISABLED=false
DRONE_UI_USERNAME=root
DRONE_UI_PASSWORD=root
################################################################################
# Don't Edit
#
# TLS
#
# DRONE_SERVER_CERT=/etc/certs/drone.t.khs1994.com.crt
# DRONE_SERVER_KEY=/etc/certs/drone.t.khs1994.com.key
CI_DB_TYPE=
CI_DRONE_VERSION=2.16.0
CI_NGINX_VERSION=1.27.0
CI_REDIS_VERSION=7.0.0
CI_MYSQL_VERSION=8.0.33
DRONE_GITHUB_CLIENT_ID_TEST=
DRONE_GITHUB_CLIENT_SECRET_TEST=