English | 简体中文
- Framework: Astro
- Platform: Cloudflare Pages
- Runtime: Deno
- S3 Client: S3mini
- Type Safety: TypeScript
-
Clone the repository
git clone https://github.com/CAB233/s3-browser.git cd s3-browser -
Install dependencies
deno install
-
Configure Environment Variables
Copy
.dev.vars.exampleto.dev.varsand fill in your S3 credentials. -
Run the application
deno task dev
-
Configure Wrangler configuration file
cp wrangler.toml.example wrangler.toml
-
Configure Secrets
Before deploying, ensure you have set the required secret environment variables in your Cloudflare dashboard or via wrangler:
deno run npm:wrangler secret put BUCKET_ENDPOINT deno run npm:wrangler secret put BUCKET_REGION deno run npm:wrangler secret put BUCKET_ACCESS_KEY_ID deno run npm:wrangler secret put BUCKET_SECRET_ACCESS_KEY deno run npm:wrangler secret put BUCKET_DOWNLOAD_URL
-
Build and Deploy
deno task build deno task deploy
| Name | Description | Required | Default |
|---|---|---|---|
BUCKET_ENDPOINT |
The endpoint of the bucket. | Yes | - |
BUCKET_REGION |
The region of the bucket. | Yes | - |
BUCKET_ACCESS_KEY_ID |
The access key ID of the bucket. | Yes | - |
BUCKET_SECRET_ACCESS_KEY |
The secret access key of the bucket. | Yes | - |
BUCKET_DOWNLOAD_URL |
A publicly accessible URL to download objects. | Yes | - |
DISABLE_SE_INDEX |
Set to true to disable search engine indexing. |
No | true |
MIT
- CaddyServer for their html template design.
- Forked from rafiibrahim8/bucketlist.
