Skip to content

Instantly share code, notes, and snippets.

@viggin543
Created September 24, 2022 10:01
Show Gist options
  • Save viggin543/fcf344c8a728428751d1a3ac64a1f5ff to your computer and use it in GitHub Desktop.
Save viggin543/fcf344c8a728428751d1a3ac64a1f5ff to your computer and use it in GitHub Desktop.
resource "google_compute_backend_bucket" "foo_backend" {
name = "foo-backend-bucket"
description = "FOO frontend"
custom_response_headers = ["X-foo: bar"]
bucket_name = google_storage_bucket.editor.name
enable_cdn = true
edge_security_policy = google_compute_security_policy.waf-security-policy.id
cdn_policy {
serve_while_stale = 86400
client_ttl = 60
default_ttl = 60
request_coalescing = true
cache_mode = "CACHE_ALL_STATIC"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment