add pdf.viktorbarzin.me -> paperless-ngx [ci skip]

This commit is contained in:
Viktor Barzin 2024-02-23 23:08:03 +00:00
parent d797590a88
commit ae2e582af6
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 18 additions and 2 deletions

View file

@ -76,8 +76,8 @@ resource "kubernetes_deployment" "paperless-ngx" {
value = var.db_password
}
env {
name = "PAPERLESS_URL"
value = "https://paperless-ngx.viktorbarzin.me"
name = "PAPERLESS_CSRF_TRUSTED_ORIGINS"
value = "https://paperless-ngx.viktorbarzin.me,https://pdf.viktorbarzin.me"
}
env {
name = "PAPERLESS_DEBUG"
@ -166,5 +166,21 @@ resource "kubernetes_ingress_v1" "paperless-ngx" {
}
}
}
rule {
host = "pdf.viktorbarzin.me"
http {
path {
path = "/"
backend {
service {
name = "paperless-ngx"
port {
number = 8000
}
}
}
}
}
}
}
}