include env. maybe not compatible with bsd?
makefile to source env files without nix
source file to keep env vars around after hook ends
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
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"
eval $(cat env) mix phx.server
make image
docker run --rm --detach --env-file=env -p 127.0.0.1:4000:4000 s3proxy:$(git rev-parse --short HEAD)
See basic setup