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.
44 lines
1.3 KiB
Terraform
44 lines
1.3 KiB
Terraform
|
|
locals {
|
|
gitea_env_vars = {
|
|
APP_NAME = var.app_name
|
|
HTTP_PORT = "3000"
|
|
RUN_MODE = "prod"
|
|
LFS_START_SERVER = "true"
|
|
SSH_DOMAIN = var.fqdn
|
|
DISABLE_REGISTRATION = true
|
|
INSTALL_LOCK = "true"
|
|
DB_TYPE = "mysql"
|
|
DB_NAME = "gitea"
|
|
DB_HOST = module.gitea_database.host
|
|
SSH_LISTEN_PORT = 22
|
|
GITEA__mailer__ENABLED = true
|
|
GITEA__mailer__FROM = var.from_email
|
|
GITEA__mailer__SMTP_ADDR = var.smtp_host
|
|
GITEA__mailer__SMTP_PORT = var.smtp_port
|
|
GITEA__mailer__PROTOCOL = "smtps"
|
|
}
|
|
|
|
gitea_secrets = {
|
|
DB_USER = {
|
|
key = "username"
|
|
name = module.gitea_database.app_crendentials_name
|
|
}
|
|
DB_PASSWD = {
|
|
key = "password"
|
|
name = module.gitea_database.app_crendentials_name
|
|
}
|
|
GITEA__mailer__USER = {
|
|
key = "username"
|
|
name = kubernetes_secret.gitea_mail_credentials.metadata[0].name
|
|
}
|
|
GITEA__mailer__PASSWD = {
|
|
key = "password"
|
|
name = kubernetes_secret.gitea_mail_credentials.metadata[0].name
|
|
}
|
|
}
|
|
|
|
gitea_path = "${var.persistent_folder}/gitea"
|
|
gitea_db_path = "${var.database_folder}/mysql.gitea"
|
|
}
|