This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSpacefile
214 lines (212 loc) · 7.98 KB
/
Spacefile
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
app_name: Waline
icon: ./logo.png
micros:
- name: waline
primary: true
src: ./
engine: nodejs16
run: "node index.js"
public_routes:
- /*
# commands:
# - curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune
presets:
env:
- name: LEAN_ID
description: LeanCloud Application ID
- name: LEAN_KEY
description: LeanCloud Application Key
- name: LEAN_MASTER_KEY
description: LeanCloud Application Master Key
- name: LEAN_SERVER
description: LeanCloud server address if you're leancloud china user
- name: SITE_NAME
description: site name
- name: SITE_URL
description: site url
- name: AUTHOR_EMAIL
description: The blogger’s email, used to judge whether posted comment is posted by the blogger. If it is posted by the blogger, there will be no reminder notification.
- name: LOGIN
description: User need login before comment when LOGIN=force
- name: DISABLE_USERAGENT
description: wether hide the user agent of commenter. Default value is false
- name: DISABLE_REGION
description: wether hide commenter's region. Default value is false
- name: DISABLE_AUTHOR_NOTIFY
description: wether disable author notification
- name: AVATAR_PROXY
description: Avatar proxy service url. You can set false to disable it
- name: GRAVATAR_STR
description: Gravatar render string,base on nunjucks template
- name: LEVELS
description: Give each user a rating label based on the number of comments
- name: IPQPS
description: IP-based comment posting frequency limit in seconds. Set to 0 for no
limit
- name: SECURE_DOMAINS
description: Secure Domains config. Supports multiple domain with Comma separated
- name: AKISMET_KEY
description: Akismet antispam service key, set false if you wanna close it.
- name: COMMENT_AUDIT
description: Comment audit switcher. When enabled, every comment needs to be approved
by admin, so hint in placeholder is recommended
- name: RECAPTCHA_V3_KEY
description: reCAPTCHA V3 key,should set along with client
- name: RECAPTCHA_V3_SECRET
description: reCAPTCHA V3 secret for server.
- name: TURNSTILE_KEY
description: Turnstile key,should set along with client
- name: TURNSTILE_SECRET
description: Turnstile secret for server
- name: MARKDOWN_CONFIG
description: MarkdownIt Config
- name: MARKDOWN_HIGHLIGHT
description: Whether enable highlight
- name: MARKDOWN_EMOJI
description: Whether enable emoji
- name: MARKDOWN_SUB
description: Whether enable subscript
- name: MARKDOWN_SUP
description: Whether enable superscript
- name: MARKDOWN_TEX
description: Service to parse math, mathjax katex and false are supported
- name: MARKDOWN_MATHJAX
description: MathJax Options
- name: MARKDOWN_KATEX
description: Katex Options
- name: SMTP_SERVICE
description: SMTP mail service provider
- name: SMTP_HOST
description: SMTP server address
- name: SMTP_PORT
description: SMTP server port
- name: SMTP_USER
description: SMTP username
- name: SMTP_PASS
description: SMTP Password.
- name: SMTP_SECURE
description: SMTP connect with SSL
- name: SENDER_NAME
description: Customize sender name
- name: SENDER_EMAIL
description: Customize sender email
- name: MONGO_DB
description: MongoDB database name
default: ''
- name: MONGO_USER
description: MongoDB server username
default: ''
- name: MONGO_PASSWORD
description: MongoDB server password
default: ''
- name: MONGO_HOST
description: MongoDB server address, support array format
default: 127.0.0.1
- name: MONGO_PORT
description: MongoDB server port, support array format
default: '27017'
- name: MONGO_REPLICASET
description: MongoDB replica set
default: ''
- name: MONGO_AUTHSOURCE
description: MongoDB auth source
default: ''
- name: MONGO_OPT_SSL
description: use SSL connection
default: 'false'
- name: MYSQL_DB
description: MySQL database name
default: ''
- name: MYSQL_USER
description: MySQL server username
default: ''
- name: MYSQL_PASSWORD
description: MySQL server password
default: ''
- name: MYSQL_HOST
description: MySQL server address
default: 127.0.0.1
- name: MYSQL_PORT
description: MySQL server port
default: '3306'
- name: MYSQL_PREFIX
description: MySQL table prefix
default: wl_
- name: MYSQL_CHARSET
description: MySQL table charset
default: utf8mb4
- name: MYSQL_SSL
description: whether use SSL connection
default: 'false'
- name: TIDB_DB
description: TiDB database name
default: ''
- name: TIDB_USER
description: TiDB server username
default: ''
- name: TIDB_PASSWORD
description: TiDB server password
default: ''
- name: TIDB_HOST
description: TiDB server address
default: 127.0.0.1
- name: TIDB_PORT
description: TiDB server port
default: '4000'
- name: TIDB_PREFIX
description: TiDB table prefix
default: wl_
- name: TIDB_CHARSET
description: TiDB table charset
default: utf8mb4
- name: JWT_TOKEN
description: Random String for login token generator
default: ''
- name: PG_DB
description: PostgreSQL database name
default: ''
- name: PG_USER
description: PostgreSQL server username
default: ''
- name: PG_PASSWORD
description: PostgreSQL server password
default: ''
- name: PG_HOST
description: PostgreSQL server address
default: 127.0.0.1
- name: PG_PORT
description: PostgreSQL server port
default: '3211'
- name: PG_PREFIX
description: PostgreSQL table prefix
default: wl_
- name: PG_SSL
description: set to true to use SSL connection
default: 'false'
- name: GITHUB_TOKEN
description: Personal access tokens
default: ''
- name: GITHUB_REPO
description: repository name, such as walinejs/waline
default: ''
- name: GITHUB_PATH
description: The data storage directory, such as data means it is stored in the data directory, root directory by default
default: ''
- name: OAUTH_URL
description: OAuth Social Login Service URL. You can build your own auth
- name: WEBHOOK
description: You can set a Webhook URL that will be triggered when you have new comment.
- name: WALINE_ADMIN_MODULE_ASSET_URL
description: Waline admin link
- name: IP2REGION_DB
description: customized IP query library path
- name: MAIL_SUBJECT
description: Notification mail title when comment replied
- name: MAIL_TEMPLATE
description: Notification mail content when comment replied
- name: MAIL_SUBJECT_ADMIN
description: Notification mail title when your site has a new comment
- name: MAIL_TEMPLATE_ADMIN
description: Notification mail content when your site has a new comment