/s3-proxy

s3-proxy is a streamlined tool designed to function as an image hosting service, providing a simple HTTP interface to upload images to AWS S3. It’s tailored for seamless integration with Apple Shortcuts, Markdown editors like Typora, and command-line workflows.

Primary LanguageGo

Why

For Apple Shotcuts or MWeb APP or Bash scripts

Apple Shotcuts

https://www.icloud.com/shortcuts/936ea0c7a9404a0ebf0cbabf9d522149

How to use

Deploy

docker run -d \
  --restart unless-stopped \
  --name s3-proxy \
  -e S3_ACCESS_ID=xxx \
  -e S3_SECRET_KEY=xxx \
  -e S3_REGION=xxx \
  -e S3_BUCKET_NAME=xxx \
  -e S3_ENDPOINT=xxx \
  -e S3_URL_PREFIX=xxx \
  -e HTTP_USERNAME=xxx \
  -e HTTP_PASSWORD=xxx \
  -p 8080:8080 \
  ghcr.io/monlor/s3-proxy:main

Upload by curl

curl -X POST -u foo:bar -F file=@test.txt localhost:8080/upload

Command line tool

install s3-proxy (For Mac)

brew tap monlor/taps
brew install monlor/taps/s3-proxy

Config

s3-proxy

Typora

add custom command

s3-proxy