Add storage configuration hint to simplify the configuration (#44)

Reviewed-on: https://gitea.com/gitea/docs/pulls/44
This commit is contained in:
Lunny Xiao
2024-08-09 02:29:24 +00:00
parent ed0fa59c0e
commit eebb6b1528
4 changed files with 6 additions and 4 deletions

View File

@@ -1316,7 +1316,8 @@ is `data/lfs` and the default of `MINIO_BASE_PATH` is `lfs/`.
## Storage (`storage`)
Default storage configuration for attachments, lfs, avatars, repo-avatars, repo-archive, packages, actions_log, actions_artifact.
Default storage configuration for attachments, lfs, avatars, repo-avatars, repo-archive, packages, actions_log, actions_artifact. It's recommended to only configure this section and let other section derive from this one if all storages
are under the same parent directory or minio bucket.
- `STORAGE_TYPE`: **local**: Storage type, `local` for local disk, `minio` for s3 compatible object storage service, `azureblob` for azure blob storage service.
- `SERVE_DIRECT`: **false**: Allows the storage driver to redirect to authenticated URLs to serve files directly. Currently, only Minio/S3 is supported via signed URLs, local does nothing.