Store Gitea data (avatars, attachments, etc.) in Garage/S3

Also adds a new garage gateway role, which only allows RPC (inter-node)
traffic to Garage.
This commit is contained in:
Râu Cao
2022-11-26 13:05:07 +01:00
parent 9a89af0fe3
commit e0fb84e56c
12 changed files with 138 additions and 65 deletions

View File

@@ -92,3 +92,16 @@ SCHEDULE = @every 15m
[webhook]
<% if c["allowed_host_list"] %>ALLOWED_HOST_LIST = <%= c["allowed_host_list"] %><% end %>
<% end %>
<% if c = @config["storage"] %>
[storage]
<% if c["type"] == "minio" %>
STORAGE_TYPE=minio
MINIO_ENDPOINT=<%= c["endpoint"] %>
MINIO_ACCESS_KEY_ID=<%= @s3_key_id %>
MINIO_SECRET_ACCESS_KEY=<%= @s3_secret_key %>
MINIO_BUCKET=<%= @s3_bucket %>
MINIO_LOCATION=<%= c["location"] %>
MINIO_USE_SSL=<%= c["use_ssl"] %>
<% end %>
<% end %>