feat(server): add log removal daemon

This commit is contained in:
Jef Roosens 2022-12-17 17:11:19 +01:00
parent af409011e6
commit a9ad3088bb
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 81 additions and 0 deletions

View file

@ -149,3 +149,17 @@ target | id of target this build is for
### Request body
Plaintext contents of the build log.
## Remove a build log
Remove a build log from the server.
### HTTP Request
`DELETE /api/v1/logs/:id`
### URL Parameters
Parameter | Description
--------- | -----------
id | id of log to remove

View file

@ -47,6 +47,11 @@ configuration variable required for each command.
* Git repositories added without an `arch` value use this value instead.
* `port`: HTTP port to run on
* Default: `8000`
* `max_log_age`: maximum age of logs (in days). Logs older than this will get
cleaned by the log removal daemon every 24 hours. If set to a negative value,
no logs are ever removed. The age of logs is determined by the time the build
was started.
* Default: `-1`
### `vieter cron`