Skip to content

Commit

Permalink
Merge pull request #14 from SmartColumbusOS/waffy-duck
Browse files Browse the repository at this point in the history
attach joomler to the waf
  • Loading branch information
bbrewer-forge authored Sep 2, 2020
2 parents 66b2373 + 4c7f837 commit 56c3797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def deployTo(params = [:]) {
def internalCertificateARN = terraformOutputs.tls_certificate_arn.value
def rootDnsZone = terraformOutputs.root_dns_zone_name.value
def internalDnsZone = terraformOutputs.internal_dns_zone_name.value
def rootWAFACLARN = terraformOutputs.eks_cluster_waf_acl_arn.value

sh("""#!/bin/bash
set -e
Expand All @@ -70,6 +71,7 @@ def deployTo(params = [:]) {
--set ingress.root.scheme="${rootIngressScheme}" \
--set ingress.root.dns_zone="${rootDnsZone}" \
--set ingress.root.certificate_arns="${rootCertificateARN}" \
--set ingress.root.waf_acl_arn="${rootWAFACLARN}" \
--set ingress.internal.enabled="true" \
--set ingress.internal.dns_zone="${internalDnsZone}" \
--set ingress.internal.certificate_arns="${internalCertificateARN}" \
Expand Down
1 change: 1 addition & 0 deletions chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
alb.ingress.kubernetes.io/actions.redirect-api: '{"Type": "redirect", "RedirectConfig":{"Protocol": "HTTPS", "Port": "443", "Host": "data.{{ .Values.ingress.root.dns_zone }}", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-policy: "ELBSecurityPolicy-TLS-1-2-2017-01"
alb.ingress.kubernetes.io/wafv2-acl-arn: {{ .Values.ingress.root.waf_acl_arn }}
spec:
backend:
serviceName: {{ .Values.service.name }}
Expand Down

0 comments on commit 56c3797

Please sign in to comment.