~sbaildon/s3proxy

include env. maybe not compatible with bsd?
makefile to source env files without nix
source file to keep env vars around after hook ends

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~sbaildon/s3proxy
read/write
git@git.sr.ht:~sbaildon/s3proxy

You can also use your local clone with git send-email.

#s3proxy

Self host static sites from object storage—s3, b2, wasabi, minio etc. Use s3proxy to make your own Github, Sourcehut, or Cloudflare pages.

s3proxy will look in the configured bucket and serve files from a directory that match the Host header

#Quickstart

#Configuration

Create an evironment file

# env
ACCESS_KEY_ID="abc123"
SECRET_ACCESS_KEY="xyz789"
REGION_URL="s3.eu-central-1.wasabisys.com"
REGION="eu-central-1"
BUCKET="static-sites"

#Running with Elixir

eval $(cat env) mix phx.server

#Running with Docker

make image
docker run --rm --detach --env-file=env -p 127.0.0.1:4000:4000 s3proxy:$(git rev-parse --short HEAD)

#More details

See basic setup