We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6733721 commit 22b33cfCopy full SHA for 22b33cf
app.json
@@ -16,7 +16,7 @@
16
},
17
"FF_TOKEN": {
18
"description": "令牌,在触发执行的时候,需要跟上此参数的值。假设 FF_TOKEN 的值为 123,则传参的格式为 https://xxx.herokuapp.com/?ff-token=123",
19
- "generator": "secret"
+ "value": ""
20
21
"FREENOM_USERNAME": {
22
"description": "Freenom 账户 Freenom Account",
heroku/html/index.php
@@ -5,6 +5,12 @@
5
header('X-Accel-Buffering: no');
6
7
echo '<pre>';
8
+
9
+$FF_TOKEN = $_GET('ff-token');
10
+if ($FF_TOKEN !== getenv('FF_TOKEN')) {
11
+ die('你没有权限触发执行');
12
+}
13
14
echo "Freenom 自动续期\n\n";
15
echo "开始执行\n\n";
0 commit comments