ci(deploy): 改为 GitHub Webhook 触发部署

This commit is contained in:
admin committed 2026-10-20 14:23:31 +08:00
1 parent 69bfe3ce0e
commit 469630e7da
11 files changed
+267 -78

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# 放入现有 laohang.space HTTPS server 块中。
location = /github/webhook {
proxy_pass http://127.0.0.1:9001/github/webhook;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=WeReadBoard GitHub Webhook Receiver
After=network.target
[Service]
Type=simple
User=weread
WorkingDirectory=/opt/weread-board/WeReadBoard
EnvironmentFile=/etc/weread-webhook.env
ExecStart=/opt/weread-board/WeReadBoard/.venv/bin/python deploy_webhook.py
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target