0
0
mirror of https://gitea.com/gitea/docs.git synced 2025-03-17 21:54:21 +00:00

Enable compression for Actions logs by default (#66)

Follow https://github.com/go-gitea/gitea/pull/32013

Reviewed-on: https://gitea.com/gitea/docs/pulls/66
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-committed-by: Jason Song <i@wolfogre.com>
This commit is contained in:
Jason Song
2024-09-10 02:32:33 +00:00
committed by Jason Song
parent 75bb2f36ff
commit d9cc7c43c0
2 changed files with 2 additions and 2 deletions
docs/administration
i18n/zh-cn/docusaurus-plugin-content-docs/current/administration

@ -1333,7 +1333,7 @@ PROXY_HOSTS = *.github.com
- `STORAGE_TYPE`: **local**:用于操作日志的存储类型,`local`表示本地磁盘,`minio`表示与S3兼容的对象存储服务默认为`local`,或者使用定义为`[storage.xxx]`的其他名称。
- `MINIO_BASE_PATH`: **actions_log/**Minio存储桶上的基本路径仅在`STORAGE_TYPE``minio`时可用。
- `LOG_RETENTION_DAYS`: **365**:日志保留时间(天)。此期限后将删除旧日志。
- `LOG_COMPRESSION`: **none**:日志压缩方式,`none`表示不压缩,`zstd`表示 zstd 压缩。
- `LOG_COMPRESSION`: **zstd**:日志压缩方式,`none`表示不压缩,`zstd`表示 zstd 压缩。
其它的压缩方式如`gzip`是不支持的,因为查看日志需要可寻址流。
如果 CPU 或内存不是瓶颈,建议在使用本地磁盘作为日志存储时总是使用压缩。
对于像 S3 这样的会对请求次数计费的对象存储服务,每次查看日志会导致额外的 2 次获取请求。