~bigbes/core-go

ref: 0c56cc143e7dc0ba583114c3f50bce35035007a9 core-go/objects/middleware.go -rw-r--r-- 2.8 KiB
9ad46439 — Conrad Hoffmann 7 months ago
objects: make `URL()` respect `s3-insecure`

Helpful in development environments where a local S3 instance is used
without HTTPS.
20be483e — Conrad Hoffmann 9 months ago
Don't uppercase error messages
3e875f28 — Conrad Hoffmann 10 months ago
objects: bring back support for plain HTTP

This got lost during the transition from minio to S3 client.
3686f7e2 — Drew DeVault 1 year, 17 days ago
objects: improve support for our s3 deployment

Not sure how well this generalizes but we can improve it when someone
complains.
42a4b67b — Drew DeVault 1 year, 18 days ago
Switch from minio to AWS SDK S3 client

Moves s3 => objects to avoid conflicting with the AWS module.
465a6f71 — Drew DeVault 1 year, 6 months ago
all: pass errors to panic, not strings

GraphQL's recovery middleware can't handle strings so it just logs a
very not useful <nil>
942e19c3 — Simon Ser 2 years ago
s3: add Enabled
d99f0983 — Simon Ser 2 years ago
s3: add [objects]s3-insecure

Disables TLS. Useful for local development.
e81358e2 — Simon Ser 2 years ago
s3: add NewClient and URL

Centralizes the logic to create an S3 client and get the base URL.
156c5e26 — Adnan Maolood 3 years ago
s3: Import middleware from pages.sr.ht

Closes: https://todo.sr.ht/~sircmpwn/pages.sr.ht/19