e6e85b00f7
- Added getmail configuration generation using template files. - Introduced postfix and dovecot configuration checksums for deployment. - Created new dovecot configuration file and sieve script for email handling. - Updated main.tf to utilize local variables for configuration management. - Removed redundant external password hasher from main.tf. feat(nginx): improve nginx configuration management - Centralized nginx configuration into a local variable with checksum. - Created separate config maps for default website configurations. - Updated deployment to utilize new configuration structure. feat(sftpgo): add SFTPGo application deployment - Introduced SFTPGo with Kubernetes resources including namespace, config maps, and secrets. - Configured SFTPGo with SMTP settings and AWS credentials. - Implemented health checks and volume mounts for persistent storage. refactor(seafile): remove Seafile module - Deleted Seafile module and associated resources as part of cleanup.
59 lines
2.0 KiB
Terraform
59 lines
2.0 KiB
Terraform
module "mail_backup" {
|
|
|
|
source = "../modules/utils/scw_rclone"
|
|
|
|
namespace = module.mail.namespace
|
|
app_name = module.mail.app_name
|
|
|
|
scaleway_organization_id = var.scaleway_organization_id
|
|
scaleway_project_id = var.scaleway_organization_id
|
|
access_key = scaleway_iam_api_key.backup_app_api.access_key
|
|
secret_key = scaleway_iam_api_key.backup_app_api.secret_key
|
|
bucket_name = scaleway_object_bucket.backup.name
|
|
|
|
retention_days = local.local_backup_retention_days
|
|
cron_schedule = local.mail_files_backup_cron_schedule
|
|
|
|
source_folder = module.mail.path
|
|
target_folder = local.mail_backup_path
|
|
}
|
|
|
|
module "gitea_backup" {
|
|
source = "../modules/utils/scw_rclone"
|
|
|
|
namespace = module.gitea.namespace
|
|
app_name = module.gitea.app_name
|
|
|
|
scaleway_organization_id = var.scaleway_organization_id
|
|
scaleway_project_id = var.scaleway_organization_id
|
|
access_key = scaleway_iam_api_key.backup_app_api.access_key
|
|
secret_key = scaleway_iam_api_key.backup_app_api.secret_key
|
|
bucket_name = scaleway_object_bucket.backup.name
|
|
|
|
retention_days = local.local_backup_retention_days
|
|
cron_schedule = local.gitea_files_backup_cron_schedule
|
|
|
|
source_folder = module.gitea.path
|
|
target_folder = local.gitea_backup_path
|
|
}
|
|
|
|
module "sftpgo_backup" {
|
|
|
|
source = "../modules/utils/scw_rclone"
|
|
|
|
namespace = module.sftpgo.namespace
|
|
app_name = module.sftpgo.app_name
|
|
|
|
scaleway_organization_id = var.scaleway_organization_id
|
|
scaleway_project_id = var.scaleway_organization_id
|
|
access_key = scaleway_iam_api_key.backup_app_api.access_key
|
|
secret_key = scaleway_iam_api_key.backup_app_api.secret_key
|
|
bucket_name = scaleway_object_bucket.backup.name
|
|
|
|
retention_days = local.local_backup_retention_days
|
|
cron_schedule = local.sftpgo_files_backup_cron_schedule
|
|
|
|
source_folder = module.sftpgo.path
|
|
target_folder = local.sftpgo_backup_path
|
|
}
|