Appearance
Configure Public Bucket Access and Static Website
You can configure a bucket to serve content publicly or even host a static website.
Steps
Set Bucket to Public
- Go to Object Store > Containers.
- Find your bucket and click the Edit or Change Privacy action.
- Set the access level to Public.
- Warning: This makes all objects in the bucket readable by anyone with the link.
Get the Public URL
- Click on the bucket name.
- Click the Link icon or look at the object details to find the public URL.
- The format is typically:
https://<storage-endpoint>/<project-id>/<bucket-name>/<object-name>.
Configure Static Website (S3 Metadata)
To use the bucket as a website (e.g., automatically serving index.html):
- Ensure an
index.htmlfile is uploaded to the root of the bucket. - Using an S3-compatible tool (like
aws-cliors3cmd), set the website configuration:bash# Example using AWS CLI aws s3 website s3://my-bucket-name/ --index-document index.html --error-document error.html - If using Horizon, look for Metadata settings on the container and add:
X-Container-Meta-Web-Index:index.htmlX-Container-Meta-Web-Error:error.html
Verify Access
Open the public URL in a browser. If configured correctly as a website, navigating to the bucket root should automatically display your index.html content.