Format, enable CORS on couch helm chart
This commit is contained in:
parent
b13ebfb409
commit
3321b23071
|
@ -14,8 +14,9 @@ resource "aws_cloudfront_distribution" "api-by-becki" {
|
|||
allowed_methods = ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"]
|
||||
cached_methods = ["GET", "HEAD"]
|
||||
target_origin_id = "abb.gmem.ca"
|
||||
compress = true
|
||||
viewer_protocol_policy = "redirect-to-https"
|
||||
cache_policy_id = "658327ea-f89d-4fab-a63d-7e88639e58f6"
|
||||
cache_policy_id = aws_cloudfront_cache_policy.api-by-becki.id
|
||||
response_headers_policy_id = "eaab4381-ed33-4a86-88ca-d9558dc6cd63"
|
||||
}
|
||||
|
||||
|
@ -39,6 +40,12 @@ resource "aws_cloudfront_distribution" "api-by-becki" {
|
|||
}
|
||||
}
|
||||
|
||||
resource "aws_cloudfront_cache_policy" "api-by-becki" {
|
||||
default_ttl = 300
|
||||
max_ttl = 604800
|
||||
min_ttl = 1
|
||||
}
|
||||
|
||||
resource "aws_acm_certificate" "api-by-becki" {
|
||||
domain_name = "api-by-becki.gmem.ca"
|
||||
validation_method = "DNS"
|
||||
|
|
|
@ -16,8 +16,8 @@ resource "aws_route53_record" "api-by-becki-primary" {
|
|||
type = "A"
|
||||
|
||||
alias {
|
||||
name = "${aws_cloudfront_distribution.api-by-becki.domain_name}"
|
||||
zone_id = "${aws_cloudfront_distribution.api-by-becki.hosted_zone_id}"
|
||||
name = aws_cloudfront_distribution.api-by-becki.domain_name
|
||||
zone_id = aws_cloudfront_distribution.api-by-becki.hosted_zone_id
|
||||
evaluate_target_health = false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ ingress:
|
|||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: 10m
|
||||
tls:
|
||||
- secretName: couch-tls
|
||||
|
|
Loading…
Reference in a new issue