Skip to content

Commit

Permalink
Merge pull request #9 from raphaellaude/patch-1
Browse files Browse the repository at this point in the history
Update cloud-storage.md
  • Loading branch information
bdon authored Nov 17, 2023
2 parents 0501d42 + a5901e6 commit a124084
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pmtiles/cloud-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,21 @@ S3 Policy for public reads:

S3 CORS Configuration:

* Using the AWS interface:

```json title="s3_cors.json"
[
{
"AllowedHeaders": ["Range"],
"AllowedMethods": ["GET","HEAD"],
"AllowedOrigins": ["https://example.com"],
"ExposeHeaders": ["ETag"]
"origin": ["https://example.com"],
"method": ["GET","HEAD"],
"responseHeader": ["range","etag"],
"maxAgeSeconds": 300
}
]
```

* The CORS can also be set using `aws s3api put-bucket-cors --bucket MY_BUCKET --cors-configuration file:///home/user/cors_rules.json` using the JSON structure shown above for Cloudflare R2.

### Google Cloud

* HTTP/2 supported
Expand Down

0 comments on commit a124084

Please sign in to comment.