mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +01:00
refactor(media): ♻️ Massively simplify media pipeline with Bun.S3
This commit is contained in:
parent
29cbe7d293
commit
9ba6237f13
21 changed files with 197 additions and 1005 deletions
|
|
@ -125,9 +125,8 @@ enabled = false
|
|||
|
||||
[media]
|
||||
# Can be "s3" or "local", where "local" uploads the file to the local filesystem
|
||||
# If you need to change this value after setting up your instance, you must move all the files
|
||||
# from one backend to the other manually (the CLI will have an option to do this later)
|
||||
# TODO: Add CLI command to move files
|
||||
# Changing this value will not retroactively apply to existing data
|
||||
# Don't forget to fill in the s3 config :3
|
||||
backend = "s3"
|
||||
# Whether to check the hash of media when uploading to avoid duplication
|
||||
deduplicate_media = true
|
||||
|
|
@ -145,7 +144,7 @@ convert_to = "image/webp"
|
|||
convert_vector = false
|
||||
|
||||
# [s3]
|
||||
# Can be left blank if you don't use the S3 media backend
|
||||
# Can be left commented if you don't use the S3 media backend
|
||||
# endpoint = ""
|
||||
# access_key = "XXXXX"
|
||||
# secret_access_key = "XXX"
|
||||
|
|
|
|||
|
|
@ -486,14 +486,7 @@
|
|||
"secret_access_key",
|
||||
"public_url"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"default": {
|
||||
"endpoint": "",
|
||||
"access_key": "",
|
||||
"secret_access_key": "",
|
||||
"bucket_name": "versia",
|
||||
"public_url": "https://cdn.example.com"
|
||||
}
|
||||
"additionalProperties": false
|
||||
},
|
||||
"validation": {
|
||||
"type": "object",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue