建立推送机制 webhook

This commit is contained in:
2026-07-06 16:25:18 +08:00
parent f46904b47c
commit 8fc142b7c8
8 changed files with 297 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
# 杜康好客 — CodeUp Webhook 反代(挂到 dkapi.runxian.top 443/80 server 块内)
# setup-webhook.sh 会自动 include 此文件
location = /hooks/deploy {
proxy_pass http://127.0.0.1:8095/deploy;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Gitlab-Token $http_x_gitlab_token;
proxy_set_header X-Codeup-Token $http_x_codeup_token;
proxy_set_header X-Deploy-Token $http_x_deploy_token;
client_max_body_size 1m;
}