Skip to content

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

  1. Go to Object Store > Containers.
  2. Find your bucket and click the Edit or Change Privacy action.
  3. Set the access level to Public.
    • Warning: This makes all objects in the bucket readable by anyone with the link.

Get the Public URL

  1. Click on the bucket name.
  2. Click the Link icon or look at the object details to find the public URL.
  3. 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):

  1. Ensure an index.html file is uploaded to the root of the bucket.
  2. Using an S3-compatible tool (like aws-cli or s3cmd), set the website configuration:
    bash
    # Example using AWS CLI
    aws s3 website s3://my-bucket-name/ --index-document index.html --error-document error.html
  3. If using Horizon, look for Metadata settings on the container and add:
    • X-Container-Meta-Web-Index: index.html
    • X-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.