diff --git a/k8s/roles/gitea/tasks/main.yml b/k8s/roles/gitea/tasks/main.yml index f618c83..4546f2e 100644 --- a/k8s/roles/gitea/tasks/main.yml +++ b/k8s/roles/gitea/tasks/main.yml @@ -30,5 +30,4 @@ release_namespace: forgejo release_state: present chart_version: 0.10.1 - update_repo_cache: true release_values: "{{ lookup('template', 'values.forgejo.yml.j2') | from_yaml }}" diff --git a/k8s/roles/gitea/templates/values.forgejo.yml.j2 b/k8s/roles/gitea/templates/values.forgejo.yml.j2 index 29aacfe..0f6e2ec 100644 --- a/k8s/roles/gitea/templates/values.forgejo.yml.j2 +++ b/k8s/roles/gitea/templates/values.forgejo.yml.j2 @@ -37,6 +37,11 @@ gitea: additionalLabels: prometheus: default config: + repository: + FILE_MAX_SIZE: 30 + MAX_FILES: 15 + repository.release: + ALLOWED_TYPES: .bz2,.gz,.md,.pdf,.tgz,.txt,.zip,.tar.gz,.txt,application/gzip,application/x-gzip,application/x-gtar,application/x-tgz,application/x-compressed-tar,text/plain git.timeout: migrate: 3600 default: 3600 @@ -66,7 +71,16 @@ gitea: MINIO_LOCATION: us-east-1 MINIO_USE_SSL: 'false' attachment: - ALLOWED_TYPES: .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip,.tar.gz,.txt,application/gzip,application/x-gzip,application/x-gtar,application/x-tgz,application/x-compressed-tar,text/plain + ALLOWED_TYPES: .bz2,.gz,.md,.pdf,.tgz,.txt,.zip,.tar.gz,.txt,application/gzip,application/x-gzip,application/x-gtar,application/x-tgz,application/x-compressed-tar,text/plain + MAX_SIZE: 30 + MAX_FILES: 15 + STORAGE_TYPE: minio + MINIO_ENDPOINT: minio.minio.svc.cluster.local:9000 + MINIO_ACCESS_KEY_ID: "{{ minio.rootUser }}" + MINIO_SECRET_ACCESS_KEY: "{{ minio.rootPassword }}" + MINIO_BUCKET: gitea + MINIO_LOCATION: us-east-1 + MINIO_USE_SSL: 'false' database: DB_TYPE: postgres HOST: postgres-15-postgresql.postgres.svc.cluster.local:5432