S3 Data Storage (#1)
Using the storage options [here](https://docs.gitea.com/administration/config-cheat-sheet#storage-storage), this commit pushes all packages, avatars, and LFS files to S3. - Uses AWS S3. - Frees up storage on EC2 instance, so packages do not eventually steal all of the free space. Reviewed-on: #1 Co-authored-by: Max <git@maximhutz.me> Co-committed-by: Max <git@maximhutz.me>
This commit is contained in:
@@ -3,6 +3,8 @@ FROM gitea/gitea:latest-rootless
|
||||
ADD --chown=git:git config /etc/gitea
|
||||
ADD --chown=git:git custom /etc/gitea-custom
|
||||
|
||||
ENV GITEA_CUSTOM=/etc/gitea-custom
|
||||
|
||||
RUN rm /etc/gitea/app.ini
|
||||
RUN mv /etc/gitea/dev.app.ini /etc/gitea/app.ini
|
||||
|
||||
|
||||
@@ -94,3 +94,10 @@ DEFAULT_MERGE_STYLE = merge
|
||||
|
||||
[repository.signing]
|
||||
DEFAULT_TRUST_MODEL = committer
|
||||
|
||||
[storage]
|
||||
STORAGE_TYPE = minio
|
||||
MINIO_ENDPOINT = s3.us-east-1.amazonaws.com
|
||||
MINIO_BUCKET = myrica-faya
|
||||
MINIO_USE_SSL = true
|
||||
MINIO_INSECURE_SKIP_VERIFY = false
|
||||
@@ -32,8 +32,8 @@ PROTOCOL = https
|
||||
ROOT_URL = https://localhost:443/
|
||||
DOMAIN = localhost
|
||||
HTTP_PORT = 443
|
||||
CERT_FILE = cert.pem
|
||||
KEY_FILE = key.pem
|
||||
CERT_FILE = /etc/gitea-custom/cert.pem
|
||||
KEY_FILE = /etc/gitea-custom/key.pem
|
||||
|
||||
[database]
|
||||
DB_TYPE = sqlite3
|
||||
@@ -95,3 +95,12 @@ DEFAULT_TRUST_MODEL = committer
|
||||
|
||||
[oauth2]
|
||||
JWT_SECRET = x-----------------------------------------x
|
||||
|
||||
[storage]
|
||||
STORAGE_TYPE = minio
|
||||
MINIO_ENDPOINT = localstack:4566
|
||||
MINIO_ACCESS_KEY_ID = test
|
||||
MINIO_SECRET_ACCESS_KEY = test
|
||||
MINIO_BUCKET = storage
|
||||
MINIO_USE_SSL = false
|
||||
MINIO_INSECURE_SKIP_VERIFY = true
|
||||
Reference in New Issue
Block a user