Gitea supports any s3-like storage as a backend for LFS and attachments (see
Gitea Config Cheat Sheet). Add the following configuration and restarted gitea from the dashboard:
[server]
LFS_START_SERVER = true
[storage.my-storage]
STORAGE_TYPE = minio
SERVE_DIRECT = true
MINIO_ENDPOINT = s3.us-west-001.backblazeb2.com
MINIO_ACCESS_KEY_ID = {secret-id}
MINIO_SECRET_ACCESS_KEY = {secret-key}
MINIO_BUCKET = my-bucket
MINIO_LOCATION = us-west-001
MINIO_USE_SSL = true
[lfs]
STORAGE_TYPE = my-storage
[attachment]
STORAGE_TYPE = my-storage
MAX_SIZE = 50