add homepage module and some more integrations [ci skip]

This commit is contained in:
Viktor Barzin 2024-10-20 12:19:12 +00:00
parent 045d271d52
commit cf39034bdf
9 changed files with 255 additions and 3 deletions

View file

@ -1,4 +1,6 @@
variable "tls_secret_name" {}
variable "homepage_username" {}
variable "homepage_password" {}
module "tls_secret" {
source = "../setup_tls_secret"
@ -65,7 +67,7 @@ resource "helm_release" "crowdsec" {
repository = "https://crowdsecurity.github.io/helm-charts"
chart = "crowdsec"
values = [templatefile("${path.module}/values.yaml", {})]
values = [templatefile("${path.module}/values.yaml", { homepage_username = var.homepage_username, homepage_password = var.homepage_password })]
}
# resource "kubernetes_ingress_v1" "metabase" {

View file

@ -31,6 +31,15 @@ lapi:
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/auth-url: "https://oauth2.viktorbarzin.me/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://oauth2.viktorbarzin.me/oauth2/start?rd=/redirect/$http_host$escaped_request_uri"
gethomepage.dev/enabled: "true"
gethomepage.dev/description: "Web Application Firewall"
gethomepage.dev/icon: "crowdsec.png"
gethomepage.dev/name: "CrowdSec"
gethomepage.dev/widget.type: "crowdsec"
gethomepage.dev/widget.url: "http://crowdsec-service.crowdsec.svc.cluster.local:8080"
gethomepage.dev/widget.username: "${homepage_username}"
gethomepage.dev/widget.password: "${homepage_password}"
gethomepage.dev/pod-selector: ""
ingressClassName: "nginx"
host: "crowdsec.viktorbarzin.me"
tls: