sync: update from workspace (latest ITSM/CICD/DR changes)

This commit is contained in:
DESKTOP-TKLFCPR\ython 2026-06-02 20:52:19 +09:00
parent f00388b066
commit a3ec9d30df

View File

@ -67,7 +67,7 @@ class WebhookHandler(http.server.BaseHTTPRequestHandler):
def do_POST(self):
try:
length = int(self.headers.get("Content-Length", 0))
body = self.read(length) if length else b""
body = self.rfile.read(length) if length else b""
sig = self.headers.get("X-Gitea-Signature", "")
if sig:
expected = hmac.new(SECRET, body, hashlib.sha256).hexdigest()
@ -129,7 +129,7 @@ class WebhookHandler(http.server.BaseHTTPRequestHandler):
("rsync", ["bash", "-c",
f"rsync -a --exclude=__pycache__ --exclude=.git "
f"--exclude=rpa_rules.json --exclude='*.pyc' "
f". /opt/guardia/app/"]),
f"{SRC}/ /opt/guardia/app/"]),
("pip install", ["bash", "-c",
"/opt/guardia/venv/bin/pip install -r /opt/guardia/app/requirements.txt -q"]),
("restart", ["systemctl", "restart", "guardia"]),