This commit is contained in:
Greyscale 2024-06-21 17:50:08 +02:00
parent 2a613ec57b
commit f5fba1685f
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
2 changed files with 2 additions and 3 deletions

View file

@ -17,8 +17,8 @@ locals {
extra_upstreams = var.extra_upstreams
extra_locations = var.extra_locations
})
cert_public = "${var.certificate.issuer_pem}${var.certificate.certificate_pem}"
cert_private = var.certificate.private_key_pem
cert_public = var.certificate != null ? "${var.certificate.issuer_pem}${var.certificate.certificate_pem}" : ""
cert_private = var.certificate != null ? var.certificate.private_key_pem : ""
filenames = {
nginx = "${var.hostname}.conf"
auth = "${var.hostname}.auth"

View file

@ -53,7 +53,6 @@ variable "config_prefix" {
type = string
default = "nginx"
}
variable "extra_upstreams" {
type = list(object({
name = string