Simple browser-based app to display contents of an S3-compatible object storage bucket. Used for snapshots.cheqd.net.
This repo is forked from awslabs/aws-js-s3-explorer to utilise DigitalOcean's Spaces object-storage offering instead of AWS S3.
To retarget this repo to a different DigitalOcean Spaces storage, change the following lines to your own endpoint using the examples below.
Line 185:
var endpoint = 'nyc1.cdn.digitaloceanspaces.com'
Line 482:
AWS.config.region = 'nyc1';
Line 658-659:
s3exp_config.Bucket = '<space-name>';
s3exp_config.Region = 'nyc1';
The snapshots.cheqd.net microsite is auto-deployed using Cloudflare Pages using its GitHub integration. No configuration is required besides connecting your repository to Cloudflare.
CORS settings need to be specified to allow the file explorer front-end to fetch and list file details.
These steps assume that the deployment has been done to Cloudflare Pages. Follow DigitalOcean's guide on defining CORS settings to set the following:
- Origin to
https://<subdomain>.pages.dev
- Allowed Methods to
GET
andHEAD
- Allowed Headers to
*
- (optional )Access Control Max Age to 7200