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:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user