You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`LFS_STORE_TYPE`: **local**: Storage type for lfs, `local` for local disk or `minio` for s3 compatible object storage service.
224
-
-`LFS_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.
225
-
-`LFS_CONTENT_PATH`: **./data/lfs**: Where to store LFS files, only available when `LFS_STORE_TYPE` is `local`.
226
-
-`LFS_MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when `LFS_STORE_TYPE` is `minio`
227
-
-`LFS_MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when `LFS_STORE_TYPE` is `minio`
228
-
-`LFS_MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when `LFS_STORE_TYPE is``minio`
229
-
-`LFS_MINIO_BUCKET`: **gitea**: Minio bucket to store the lfs only available when `LFS_STORE_TYPE` is `minio`
230
-
-`LFS_MINIO_LOCATION`: **us-east-1**: Minio location to create bucket only available when `LFS_STORE_TYPE` is `minio`
231
-
-`LFS_MINIO_BASE_PATH`: **lfs/**: Minio base path on the bucket only available when `LFS_STORE_TYPE` is `minio`
232
-
-`LFS_MINIO_USE_SSL`: **false**: Minio enabled ssl only available when `LFS_STORE_TYPE` is `minio`
233
223
-`LFS_JWT_SECRET`: **\<empty\>**: LFS authentication secret, change this a unique string.
234
224
-`LFS_HTTP_AUTH_EXPIRY`: **20m**: LFS authentication validity period in time.Duration, pushes taking longer than this may fail.
235
225
-`LFS_MAX_FILE_SIZE`: **0**: Maximum allowed LFS file size in bytes (Set to 0 for no limit).
@@ -501,16 +491,16 @@ relation to port exhaustion.
501
491
Use `*/*` for all types.
502
492
-`MAX_SIZE`: **4**: Maximum size (MB).
503
493
-`MAX_FILES`: **5**: Maximum number of attachments that can be uploaded at once.
504
-
-`STORE_TYPE`: **local**: Storage type for attachments, `local` for local disk or `minio` for s3 compatible object storage service, default is `local`.
494
+
-`STORAGE_TYPE`: **local**: Storage type for attachments, `local` for local disk or `minio` for s3 compatible object storage service, default is `local` or other name defined with `[storage.xxx]`
505
495
-`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.
506
-
-`PATH`: **data/attachments**: Path to store attachments only available when STORE_TYPE is `local`
507
-
-`MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when STORE_TYPE is `minio`
508
-
-`MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when STORE_TYPE is `minio`
509
-
-`MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when STORE_TYPE is `minio`
510
-
-`MINIO_BUCKET`: **gitea**: Minio bucket to store the attachments only available when STORE_TYPE is `minio`
511
-
-`MINIO_LOCATION`: **us-east-1**: Minio location to create bucket only available when STORE_TYPE is `minio`
512
-
-`MINIO_BASE_PATH`: **attachments/**: Minio base path on the bucket only available when STORE_TYPE is `minio`
513
-
-`MINIO_USE_SSL`: **false**: Minio enabled ssl only available when STORE_TYPE is `minio`
496
+
-`PATH`: **data/attachments**: Path to store attachments only available when STORAGE_TYPE is `local`
497
+
-`MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when STORAGE_TYPE is `minio`
498
+
-`MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
499
+
-`MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`
500
+
-`MINIO_BUCKET`: **gitea**: Minio bucket to store the attachments only available when STORAGE_TYPE is `minio`
501
+
-`MINIO_LOCATION`: **us-east-1**: Minio location to create bucket only available when STORAGE_TYPE is `minio`
502
+
-`MINIO_BASE_PATH`: **attachments/**: Minio base path on the bucket only available when STORAGE_TYPE is `minio`
503
+
-`MINIO_USE_SSL`: **false**: Minio enabled ssl only available when STORAGE_TYPE is `minio`
514
504
515
505
## Log (`log`)
516
506
@@ -714,6 +704,56 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
714
704
-`MAX_ATTEMPTS`: **3**: Max attempts per http/https request on migrations.
715
705
-`RETRY_BACKOFF`: **3**: Backoff time per http/https request retry (seconds)
716
706
707
+
## LFS (`lfs`)
708
+
709
+
Storage configuration for lfs data. It will be derived from default `[storage]` or
710
+
`[storage.xxx]` when set `STORAGE_TYPE` to `xxx`. When derived, the default of `PATH`
711
+
is `data/lfs` and the default of `MINIO_BASE_PATH` is `lfs/`.
712
+
713
+
-`STORAGE_TYPE`: **local**: Storage type for lfs, `local` for local disk or `minio` for s3 compatible object storage service or other name defined with `[storage.xxx]`
714
+
-`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.
715
+
-`CONTENT_PATH`: **./data/lfs**: Where to store LFS files, only available when `STORAGE_TYPE` is `local`.
716
+
-`MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when `STORAGE_TYPE` is `minio`
717
+
-`MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when `STORAGE_TYPE` is `minio`
718
+
-`MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when `STORAGE_TYPE is``minio`
719
+
-`MINIO_BUCKET`: **gitea**: Minio bucket to store the lfs only available when `STORAGE_TYPE` is `minio`
720
+
-`MINIO_LOCATION`: **us-east-1**: Minio location to create bucket only available when `STORAGE_TYPE` is `minio`
721
+
-`MINIO_BASE_PATH`: **lfs/**: Minio base path on the bucket only available when `STORAGE_TYPE` is `minio`
722
+
-`MINIO_USE_SSL`: **false**: Minio enabled ssl only available when `STORAGE_TYPE` is `minio`
723
+
724
+
## Storage (`storage`)
725
+
726
+
Default storage configuration for attachments, lfs, avatars and etc.
727
+
728
+
-`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.
729
+
-`MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when `STORAGE_TYPE` is `minio`
730
+
-`MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when `STORAGE_TYPE` is `minio`
731
+
-`MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when `STORAGE_TYPE is``minio`
732
+
-`MINIO_BUCKET`: **gitea**: Minio bucket to store the data only available when `STORAGE_TYPE` is `minio`
733
+
-`MINIO_LOCATION`: **us-east-1**: Minio location to create bucket only available when `STORAGE_TYPE` is `minio`
734
+
-`MINIO_USE_SSL`: **false**: Minio enabled ssl only available when `STORAGE_TYPE` is `minio`
735
+
736
+
And you can also define a customize storage like below:
737
+
738
+
```ini
739
+
[storage.my_minio]
740
+
STORAGE_TYPE = minio
741
+
; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
742
+
MINIO_ENDPOINT = localhost:9000
743
+
; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
744
+
MINIO_ACCESS_KEY_ID =
745
+
; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`
746
+
MINIO_SECRET_ACCESS_KEY =
747
+
; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio`
748
+
MINIO_BUCKET = gitea
749
+
; Minio location to create bucket only available when STORAGE_TYPE is `minio`
750
+
MINIO_LOCATION = us-east-1
751
+
; Minio enabled ssl only available when STORAGE_TYPE is `minio`
752
+
MINIO_USE_SSL = false
753
+
```
754
+
755
+
And used by `[attachment]`, `[lfs]` and etc. as `STORAGE_TYPE`.
756
+
717
757
## Other (`other`)
718
758
719
759
-`SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
0 commit comments