feat(mail): enhance mail configuration with getmail and dovecot settings

- 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.
This commit is contained in:
2025-05-05 00:47:36 +02:00
parent 6adbd50c6d
commit e6e85b00f7
60 changed files with 1107 additions and 604 deletions
+13
View File
@@ -4,6 +4,16 @@ resource "kubernetes_namespace" "rustdesk" {
}
}
resource "kubernetes_service_account" "rustdesk" {
metadata {
name = "rustdesk-app-sa"
namespace = kubernetes_namespace.rustdesk.metadata[0].name
}
automount_service_account_token = false
}
resource "kubernetes_config_map" "rustdesk_config" {
metadata {
name = "rustdesk-config"
@@ -58,6 +68,9 @@ resource "kubernetes_deployment" "rustdesk_deploy" {
}
spec {
service_account_name = kubernetes_service_account.rustdesk.metadata[0].name
automount_service_account_token = false
container {
name = "rustdesk-container"
image = "rustdesk/rustdesk-server-s6:${local.rustdesk_version}"