Compare commits

...

2 commits

Author SHA1 Message Date
174ad5a5fb
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.
2024-09-27 08:36:41 +02:00
29ccedf146
fix(forgejo): Fix default landing page configuration
Was missing underscore to be set correctly.
2024-09-27 08:35:13 +02:00
2 changed files with 20 additions and 1 deletions

View file

@ -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:

View file

@ -24,7 +24,7 @@ services:
- "FORGEJO__database__PASSWD={{ forgejo_db_password }}"
- "FORGEJO__server__ROOT_URL={{ (forgejo_use_https == True) | ternary('https', 'http') }}://{{ (subdomain_alias is not undefined and not none) | ternary(subdomain_alias, stack_name) }}.{{server_domain}}"
- "FORGEJO__server__SSH_DOMAIN={{ (subdomain_alias is not undefined and not none) | ternary(subdomain_alias, stack_name) }}.{{server_domain}}"
- FORGEJO__server__LANDINGPAGE=explore
- FORGEJO__server__LANDING_PAGE=explore
- FORGEJO__service__DISABLE_REGISTRATION=true
{% if forgejo_app_admin_username is not undefined and not None and forgejo_app_admin_password is not undefined and not None %}
- FORGEJO__security__INSTALL_LOCK=true
@ -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 }}"