Skip to content

Instantly share code, notes, and snippets.

@viggin543
Created September 24, 2022 12:45
Show Gist options
  • Save viggin543/e35eebe158f80a5cc3eaa218477afa6e to your computer and use it in GitHub Desktop.
Save viggin543/e35eebe158f80a5cc3eaa218477afa6e to your computer and use it in GitHub Desktop.
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: api-gateway-backend
spec:
securityPolicy:
name: waf-policy
customRequestHeaders:
{{/*https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#request_headers*/}}
{{/*https://cloud.google.com/load-balancing/docs/https/custom-headers*/}}
headers:
- "X-Client-Region:{client_region}"
- "X-Client-State:{client_region_subdivision}"
- "X-Client-City:{client_city}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment