trying to add cert files
Deploy Configuration / deploy (git.rznet.fr) (push) Failing after 31s
Deploy Configuration / deploy (mirror.rznet.fr) (push) Failing after 4s

This commit is contained in:
tom.chivert committed 2026-01-20 11:35:00 +01:00
1 parent 613a45d8d0
commit 9210609a31
5 files changed
+37 -5

No files matched your search

+4
View File
@@ -4,3 +4,7 @@
*/*.tfstate
*/*.tfstate.backup
*/*.tfvars
# Cert files
*/*.cer
*/*.key
+2
View File
@@ -12,4 +12,6 @@ module "pullzone" {
limit_bandwidth = var.limit_bandwidth
limit_download_speed = var.limit_download_speed
websockets_enabled = var.websockets_enabled
certificate = var.certificate
certificate_key = var.certificate_key
}
+13 -1
View File
@@ -5,7 +5,7 @@ variable "name" {
variable "domain" {
type = string
default = "cdn.mirror.rznet.fr"
default = "mirror.rznet.fr"
}
variable "origin" {
@@ -59,3 +59,15 @@ variable "websockets_enabled" {
type = bool
default = false
}
variable "certificate" {
type = string
default = "mirror.rznet.fr.cer"
description = "Path to the certificate file"
}
variable "certificate_key" {
type = string
default = "mirror.rznet.fr.key"
description = "Path to the certificate key file"
}
+6 -4
View File
@@ -29,8 +29,10 @@ resource "bunnynet_pullzone" "service" {
}
resource "bunnynet_pullzone_hostname" "service" {
pullzone = bunnynet_pullzone.service.id
name = "${var.domain}"
tls_enabled = true
force_ssl = false
pullzone = bunnynet_pullzone.service.id
name = "${var.domain}"
tls_enabled = true
force_ssl = false
certificate = file("${var.certificate}")
certificate_key = file("${var.certificate_key}")
}
+12
View File
@@ -91,3 +91,15 @@ variable "limit_download_speed" {
type = number
default = 12500
}
variable "certificate" {
type = string
default = ""
description = "Path to the certificate file"
}
variable "certificate_key" {
type = string
default = ""
description = "Path to the certificate key file"
}