feat(forgejo): Add s3 configuration options
Sets s3 storage for all available subsystems, more information here: https://forgejo.org/docs/latest/admin/storage/ Does *not* set repositories to be hosted on s3 since forgejo does not support it.
This commit is contained in:
parent
29ccedf146
commit
174ad5a5fb
2 changed files with 19 additions and 0 deletions
|
|
@ -32,3 +32,12 @@ forgejo_use_ci: false
|
|||
# forgejo_ci_gitea_url:
|
||||
# forgejo_ci_gitea_client:
|
||||
# forgejo_ci_gitea_secret:
|
||||
|
||||
forgejo_use_s3: false
|
||||
forgejo_s3_use_ssl: true
|
||||
forgejo_s3_bucket_lookup: auto # auto|dns|path
|
||||
# forgejo_s3_endpoint:
|
||||
# forgejo_s3_region:
|
||||
# forgejo_s3_key:
|
||||
# forgejo_s3_secret:
|
||||
# forgejo_s3_bucket:
|
||||
|
|
|
|||
|
|
@ -38,6 +38,16 @@ services:
|
|||
- FORGEJO__mailer__IS_TLS_ENABLED={{ (forgejo_smtp_force_tls is not undefined and not None) | ternary(forgejo_smtp_force_tls,'false') }}
|
||||
- FORGEJO__mailer__USER={{ forgejo_smtp_username }}
|
||||
- FORGEJO__mailer__PASSWD={{ forgejo_smtp_password }}
|
||||
{% endif %}
|
||||
{% if forgejo_use_s3 %}
|
||||
- FORGEJO__storage__STORAGE_TYPE="minio"
|
||||
- FORGEJO__storage__MINIO_USE_SSL={{ forgejo_s3_use_ssl }}
|
||||
- FORGEJO__storage__MINIO_BUCKET_LOOKUP={{ forgejo_s3_bucket_lookup }}
|
||||
- FORGEJO__storage__MINIO_ENDPOINT={{ forgejo_s3_endpoint }}
|
||||
- FORGEJO__storage__MINIO_ACCESS_KEY_ID={{ forgejo_s3_key }}
|
||||
- FORGEJO__storage__MINIO_SECRET_ACCESS_KEY={{ forgejo_s3_secret }}
|
||||
- FORGEJO__storage__MINIO_BUCKET={{ forgejo_s3_bucket }}
|
||||
- FORGEJO__storage__MINIO_LOCATION={{ forgejo_s3_region }}
|
||||
{% endif %}
|
||||
networks:
|
||||
- "{{ docker_swarm_public_network_name }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue