fix
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
locals {
|
||||
dns-name = "${var.sub-domain}.${var.domain-name}"
|
||||
dns-names = [local.dns-name]
|
||||
icon = "logo192.png"
|
||||
request_headers = {
|
||||
"Content-Type" = "application/json"
|
||||
Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}"
|
||||
}
|
||||
service = {
|
||||
"name" = "${var.component}-${var.instance}"
|
||||
"port" = {
|
||||
"number" = 80
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,12 +36,7 @@ module "ingress" {
|
||||
labels = local.common-labels
|
||||
dns-names = local.dns-names
|
||||
middlewares = ["${var.instance}-https"]
|
||||
service = {
|
||||
"name" = "${var.component}-${var.instance}"
|
||||
"port" = {
|
||||
"number" = 80
|
||||
}
|
||||
}
|
||||
service = local.service
|
||||
providers = {
|
||||
kubectl = kubectl
|
||||
}
|
||||
@@ -47,7 +49,7 @@ module "application" {
|
||||
app-group = var.app-group
|
||||
sub-domain = var.sub-domain
|
||||
domain-name = var.domain-name
|
||||
icon = "logo192.png"
|
||||
icon = local.icon
|
||||
protocol_provider = var.use-oauth?module.oauth2.provider-id:module.forward.provider-id
|
||||
providers = {
|
||||
authentik = authentik
|
||||
@@ -79,6 +81,8 @@ module "forward" {
|
||||
ingress-class = var.ingress-class
|
||||
labels = local.common-labels
|
||||
dns-names = local.dns-names
|
||||
service = local.service
|
||||
icon = local.icon
|
||||
providers = {
|
||||
restapi = restapi
|
||||
http = http
|
||||
|
||||
Reference in New Issue
Block a user