feat: Update configuration for Nextcloud and Certbot, add image and video organization scripts
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
locals {
|
||||
persistent_folder = var.persistent_folder
|
||||
|
||||
database_credentials = {
|
||||
MYSQL_USER = {
|
||||
key = "username"
|
||||
@@ -63,9 +61,6 @@ locals {
|
||||
}
|
||||
}, var.db_credentials_are_secrets ? local.database_credentials : {})
|
||||
|
||||
|
||||
nextcloud_data = "${local.persistent_folder}/nextcloud"
|
||||
|
||||
apache_confs = {
|
||||
for f in fileset("${path.module}/resources/apache2/conf-enabled/", "*.conf") :
|
||||
"${f}" => file("${path.module}/resources/apache2/conf-enabled//${f}")
|
||||
|
||||
@@ -229,7 +229,7 @@ resource "kubernetes_deployment" "nextcloud_apache" {
|
||||
volume {
|
||||
name = "html-data"
|
||||
host_path {
|
||||
path = local.nextcloud_data
|
||||
path = var.nextcloud_data
|
||||
}
|
||||
}
|
||||
volume {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
variable "persistent_folder" {
|
||||
variable "nextcloud_data" {
|
||||
description = "The path to the persistent folder"
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user