enable disabling https redirection and allowing port 80
This commit is contained in:
@@ -12,6 +12,9 @@ variable "nginx_sites" {
|
||||
http2_bool = optional(bool, false)
|
||||
proxy_pass_https = optional(bool, false)
|
||||
authentication_required = optional(bool, false)
|
||||
redirect_to_https_bool = optional(bool, true)
|
||||
listen_port_80_bool = optional(bool, false)
|
||||
|
||||
}))
|
||||
|
||||
}
|
||||
@@ -28,6 +31,8 @@ resource "local_file" "nginx" {
|
||||
http2_bool = each.value.http2_bool
|
||||
proxy_pass_https = each.value.proxy_pass_https
|
||||
authentication_required = each.value.authentication_required
|
||||
redirect_to_https_bool = each.value.redirect_to_https_bool
|
||||
listen_port_80_bool = each.value.listen_port_80_bool
|
||||
})
|
||||
|
||||
filename = "../conf.d/${each.key}.tryton.geeraert.eu.conf"
|
||||
@@ -85,6 +90,8 @@ resource "kubernetes_config_map" "automatic-configmap" {
|
||||
http2_bool = value.http2_bool
|
||||
proxy_pass_https = value.proxy_pass_https
|
||||
authentication_required = value.authentication_required
|
||||
redirect_to_https_bool = value.redirect_to_https_bool
|
||||
listen_port_80_bool = value.listen_port_80_bool
|
||||
}) if value.enabled == true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user