Bind webhook server to 0.0.0.0 instead of 127.0.0.1
Required for Gitea webhook delivery via the server's public IP. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ec02b57adc
commit
cfaf67c4c6
@ -146,7 +146,7 @@ def main():
|
|||||||
print(f"[CI] Configured branches: {list(CONFIG.get('branches', {}).keys())}")
|
print(f"[CI] Configured branches: {list(CONFIG.get('branches', {}).keys())}")
|
||||||
print(f"[CI] Signature validation: {'enabled' if SECRET else 'disabled'}")
|
print(f"[CI] Signature validation: {'enabled' if SECRET else 'disabled'}")
|
||||||
|
|
||||||
server = HTTPServer(("127.0.0.1", PORT), WebhookHandler)
|
server = HTTPServer(("0.0.0.0", PORT), WebhookHandler)
|
||||||
try:
|
try:
|
||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user