A simple server that lets me upload file and puts it in an S3-compatible cloud storage.
STORAGE_ENDPOINT=
STORAGE_BUCKET=
STORAGE_AK=
STORAGE_SK=
STORAGE_REGION=
STORAGE_PUBLIC_URL=
UPLOAD_KEY=
This server lets me upload files via multipart/form-data:
curl -X PUT "http://localhost:10847/upload?path=hello.html" -H "Authorization: Bearer $UPLOAD_KEY" -F file=@fixtures/hello.htmlThe file is saved to an S3-compatible storage, and a URL is returned in JSON format:
{ "url": "https://media.mjth.live/hello.html" }curl -X PUT "http://localhost:10847/upload-raw?path=hello.txt" -H "Content-Type: text/plain" -H "Authorization: Bearer $UPLOAD_KEY" -d meow{ "url": "https://media.mjth.live/hello.txt" }