You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
renovate[bot] 61bab5e0d7
Update module minio/minio-go/v6 to v6.0.49 (#52)
2 days ago
.github Create FUNDING.yml 2 months ago
.drone.yml use tagged release for drone tests 2 days ago
.gitignore Initial commit 1 year ago
Caddyfile.tmpl Testing (#6) 1 year ago
Dockerfile Update alpine Docker tag to v3.11 (#43) 2 months ago
LICENSE Initial commit 1 year ago
README.md Testing (#6) 1 year ago
browse.go Update module mholt/caddy to v1.0.1 (#21) 7 months ago
go.mod Update module minio/minio-go/v6 to v6.0.49 (#52) 2 days ago
go.sum Update module minio/minio-go/v6 to v6.0.49 (#52) 2 days ago
renovate.json Add renovate.json (#9) 1 year ago
setup.go switch to new look and feel (#50) 1 week ago
structs.go Testing (#6) 1 year ago

README.md

Caddy s3browser

Example config

dl.example.com {
	s3browser {
		key ADDKEYHERE
		secret ADDSECRETHERE
		bucket ADDBUCKETHERE
		endpoint nyc3.digitaloceanspaces.com
		secure true
		refresh 5m
		debug false
	}
	proxy / https://examplebucket.nyc3.digitaloceanspaces.com {
		header_upstream Host examplebucket.nyc3.digitaloceanspaces.com
	}
}

This will provide directory listing for an S3 bucket (you are able to use minio, or other S3 providers). To serve files via Caddy as well you'll need to use the proxy directive as well. The server must be able to have public access to the files in the bucket.

Note: For performance reasons, the file listing is fetched once every 5minutes to reduce load on S3 (or S3 equivalent).

Prior Art