Bucket Domains
Serve static files from S3 storage buckets using your own domain.
Bucket domains let you serve files from an S3 storage bucket on your own domain. This is useful for static websites, asset CDNs, and file hosting.
Adding a bucket domain
- Navigate to your bucket's Settings tab
- Under Custom Domain, click Add Domain
- Enter your domain (e.g.,
assets.myapp.com) - Create a CNAME record:
assets.myapp.com CNAME your-bucket-endpoint.smll.io- Click Verify — SMLL provisions a TLS certificate and begins serving files
How it works
When a request arrives at your custom domain:
- SMLL resolves the domain to your bucket
- The request path maps to an object key (e.g.,
/images/logo.png→images/logo.png) - The file is served with appropriate content-type headers
- HTTPS is enforced automatically
Static website hosting
To host a static website from a bucket:
- Upload your site files (e.g.,
index.html,style.css,app.js) - Add a custom domain
- Access your site at
https://your-domain.com
There is no special "static website" mode — files are served directly by key.
Limitations
- One custom domain per bucket
- No index document or error document configuration (yet)
- No redirect rules — use client-side routing for SPAs