add option to set max proxy body size in the reverse proxy factory [ci skip]
This commit is contained in:
parent
ea3bb869e6
commit
5a3e9ea76c
2 changed files with 9 additions and 1 deletions
|
|
@ -18,6 +18,10 @@ variable "ingress_path" {
|
|||
type = list(string)
|
||||
default = ["/"]
|
||||
}
|
||||
variable "max_body_size" {
|
||||
type = string
|
||||
default = "50m"
|
||||
}
|
||||
|
||||
|
||||
resource "kubernetes_service" "proxied-service" {
|
||||
|
|
@ -54,7 +58,7 @@ resource "kubernetes_ingress_v1" "proxied-ingress" {
|
|||
# Do not do hairpinning
|
||||
"nginx.ingress.kubernetes.io/auth-url" : var.protected ? "http://oauth2.oauth2.svc.cluster.local/oauth2/auth" : null
|
||||
# "nginx.ingress.kubernetes.io/auth-signin" : var.protected ? "http://oauth2.oauth2.svc.cluster.local/oauth2/start?rd=/redirect/$http_host$escaped_request_uri" : null
|
||||
"nginx.ingress.kubernetes.io/proxy-body-size" : "50m"
|
||||
"nginx.ingress.kubernetes.io/proxy-body-size" : var.max_body_size
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue