add a bunch of cool plugins for roundcube [ci skip]

This commit is contained in:
Viktor Barzin 2025-10-18 19:03:06 +00:00
parent 719ba8dc71
commit 9844219d8b

View file

@ -57,11 +57,12 @@ resource "kubernetes_deployment" "roundcubemail" {
container { container {
name = "roundcube" name = "roundcube"
image = "roundcube/roundcubemail:latest" image = "roundcube/roundcubemail:latest"
volume_mount { # Uncomment me to mount additional settings
name = "imap-config" # volume_mount {
mount_path = "/var/roundcube/config/imap.php" # name = "imap-config"
sub_path = "imap.php" # mount_path = "/var/roundcube/config/imap.php"
} # sub_path = "imap.php"
# }
env { env {
name = "ROUNDCUBEMAIL_DEFAULT_HOST" name = "ROUNDCUBEMAIL_DEFAULT_HOST"
value = "ssl://mail.viktorbarzin.me" # tls cert must be valid! value = "ssl://mail.viktorbarzin.me" # tls cert must be valid!
@ -80,6 +81,7 @@ resource "kubernetes_deployment" "roundcubemail" {
value = 587 value = 587
} }
# DB Settings
env { env {
name = "ROUNDCUBEMAIL_DB_TYPE" name = "ROUNDCUBEMAIL_DB_TYPE"
value = "mysql" value = "mysql"
@ -96,6 +98,16 @@ resource "kubernetes_deployment" "roundcubemail" {
name = "ROUNDCUBEMAIL_DB_PASSWORD" name = "ROUNDCUBEMAIL_DB_PASSWORD"
value = var.roundcube_db_password value = var.roundcube_db_password
} }
# Plugins
env {
name = "ROUNDCUBEMAIL_COMPOSER_PLUGINS"
value = "mmvi/twofactor_webauthn,texxasrulez/persistent_login,dsoares/rcguard"
}
env {
name = "ROUNDCUBEMAIL_PLUGINS"
value = "attachment_reminder,database_attachments,enigma,twofactor_webauthn,persistent_login,rcguard"
}
env { env {
name = "ROUNDCUBEMAIL_SMTP_DEBUG" name = "ROUNDCUBEMAIL_SMTP_DEBUG"
value = "true" value = "true"
@ -114,12 +126,35 @@ resource "kubernetes_deployment" "roundcubemail" {
container_port = 80 container_port = 80
protocol = "TCP" protocol = "TCP"
} }
volume_mount {
name = "html"
mount_path = "/var/www/html"
}
volume_mount {
name = "enigma"
mount_path = "/var/roundcube/enigma"
}
} }
# volume {
# name = "imap-config"
# config_map {
# name = "roundcubemail.config"
# }
# }
volume { volume {
name = "imap-config" name = "html"
config_map { nfs {
name = "roundcubemail.config" path = "/mnt/main/roundcubemail/html"
server = "10.0.10.15"
}
}
volume {
name = "enigma"
nfs {
path = "/mnt/main/roundcubemail/enigma"
server = "10.0.10.15"
} }
} }
} }