~bigbes/core-go

ref: 44cf5e793e9c6be66d332dbc4e9301a155badef5 core-go/objects/middleware.go -rw-r--r-- 2.6 KiB
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