mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-09-22 00:24:16 +00:00
Implement -audit-server.
To use this function, configure git-pages with e.g.:
[audit]
collect = true
notify-url = "http://localhost:3004/"
and run an audit server with e.g.:
git-pages -audit-server tcp/:3004 python $(pwd)/process.py
The provided command line is executed after appending two arguments
(audit record ID and event type), and runs in a temporary directory
with the audit record extracted into it. The following files will
be present in this directory:
* `$1-event.json` (always)
* `$1-manifest.json` (if type is `CommitManifest`)
* `$1-archive.tar` (if type is `CommitManifest`)
The script must complete successfully for the event processing to
finish. The notification will keep being re-sent (by the worker) with
exponential backoff until it does.
This commit is contained in:
@@ -4,3 +4,4 @@
|
||||
/data
|
||||
/config*.toml*
|
||||
/git-pages
|
||||
/site
|
||||
|
||||
Reference in New Issue
Block a user