Skip to content

Commit

Permalink
allow ssl redirect to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jjno91 committed Jun 26, 2020
1 parent 97a9191 commit f258cc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ resource "kubernetes_ingress" "this" {

annotations = {
"kubernetes.io/ingress.class" = "nginx"
"nginx.ingress.kubernetes.io/force-ssl-redirect" = true
"nginx.ingress.kubernetes.io/ssl-redirect" = var.ssl
"nginx.ingress.kubernetes.io/force-ssl-redirect" = var.ssl
}
}

Expand Down
7 changes: 6 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ variable "node_port" {
}

variable "jnlp_port" {
description = "JNLP port exposed for Jenkins agents"
description = "https://www.jenkins.io/doc/book/managing/security/#tcp-port"
default = "50000"
}

variable "ssl" {
description = "https://kubernetes.github.io/ingress-nginx/user-guide/tls/#server-side-https-enforcement-through-redirect"
default = true
}

0 comments on commit f258cc9

Please sign in to comment.