trying to add cert files
This commit is contained in:
1 parent
613a45d8d0
commit
9210609a31
5 files changed
+37
-5
No files matched your search
@@ -4,3 +4,7 @@
|
||||
*/*.tfstate
|
||||
*/*.tfstate.backup
|
||||
*/*.tfvars
|
||||
|
||||
# Cert files
|
||||
*/*.cer
|
||||
*/*.key
|
||||
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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}")
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
Reference in new issue
Block a user