测试一些gitea的webhook功能
This commit is contained in:
2
app.js
2
app.js
@@ -10,6 +10,8 @@ const { request: undiciRequest } = require('undici');
|
||||
const GOTIFY_URL = 'https://gotify.zotv.ru/message'; // 例如: 'http://your-gotify-server.com/message'
|
||||
const GOTIFY_TOKEN = 'A1wFaeaj-VskqyF'; // 你的 Gotify 应用 Token
|
||||
|
||||
//测试一些gitea的webhook功能
|
||||
|
||||
// 启动前检查配置是否齐全
|
||||
if (!GOTIFY_URL || !GOTIFY_TOKEN) {
|
||||
console.error('错误:请设置 GOTIFY_URL 和 GOTIFY_TOKEN 环境变量!');
|
||||
|
||||
Reference in New Issue
Block a user