Files
dukang/deploy/nginx-deploy-webhook.conf
T
2026-07-21 00:01:50 +08:00

16 lines
638 B
Plaintext

# 杜康好客 — CodeUp Webhook 反代(挂到 api.dukanghaoke.com 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;
}