Closed
Description
- Gitea version (or commit ref): 1.14.0+dev-69-gd2ad4dec6
- Git version: 2.26.2
- Operating system: Ubuntu 20
Using latest Docker image.
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Log gist: https://gist.github.com/adamb70/0f58c68486d826cd4810792e1dad9b66
Description
I am trying to use S3 to host files in attachments and LFS using the minio storage type, but the files are instead being stored locally. I think this may be a problem of improper configuration, as there are no errors logged so it seems that Gitea doesn't even try to save the files to S3. The relevant parts of the ini file are below, any help is appreciated.
[server]
APP_DATA_PATH = /data/gitea
DOMAIN = git.mydomain.com
SSH_DOMAIN = git.mydomain.com
HTTP_PORT = 3000
ROOT_URL = https://git.mydomain.com/
DISABLE_SSH = false
SSH_PORT = 22
SSH_LISTEN_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs
LFS_JWT_SECRET = {secret}
OFFLINE_MODE = false
[lfs]
STORAGE_TYPE = minio
SERVE_DIRECT = false
MINIO_ENDPOINT = s3.eu-west-1.amazonaws.com
MINIO_ACCESS_KEY_ID = {secret}
MINIO_SECRET_ACCESS_KEY = {secret}
MINIO_BUCKET = my-gitea-bucket
MINIO_LOCATION = eu-west-1
MINIO_BASE_PATH = /lfs
MINIO_USE_SSL = true
[attachment]
STORAGE_TYPE = minio
SERVE_DIRECT = false
MINIO_ENDPOINT = s3.eu-west-1.amazonaws.com
MINIO_ACCESS_KEY_ID = {secret}
MINIO_SECRET_ACCESS_KEY = {secret}
MINIO_BUCKET = my-gitea-bucket
MINIO_LOCATION = eu-west-1
MINIO_BASE_PATH = /attachment
MINIO_USE_SSL = true