forked from vieter-v/vieter
feat(server): add log removal daemon
This commit is contained in:
parent
af409011e6
commit
a9ad3088bb
6 changed files with 81 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue