Add Gitea and Mail modules with configuration and resources
- Created Gitea module with outputs, provider, and variables for deployment. - Implemented Mail module including configuration for Dovecot and Postfix, along with necessary resources such as secrets, config maps, and deployments. - Added Python script for bcrypt password hashing and integrated it into the Mail module. - Defined persistent volumes and claims for Seafile module, along with Nginx configuration for serving content. - Established necessary variables for all modules to ensure flexibility and configurability.
This commit is contained in:
@@ -35,3 +35,47 @@ module "m3uproxy" {
|
||||
wireguard_private_key = var.wireguard_private_key
|
||||
wireguard_public_key = var.wireguard_public_key
|
||||
}
|
||||
|
||||
module "mail" {
|
||||
source = "../modules/mail"
|
||||
|
||||
persistent_folder = local.persistent_folder
|
||||
|
||||
primary_domain = local.primary_domain
|
||||
email_accounts = local.email_accounts
|
||||
|
||||
relay_smtp_host = local.scaleway_smtp_host
|
||||
relay_smtp_port = 465
|
||||
relay_smtp_username = var.scaleway_project_id
|
||||
relay_smtp_password = scaleway_iam_api_key.mail_app_api.secret_key
|
||||
|
||||
fetch_emails_schedule = local.fetch_emails_schedule
|
||||
|
||||
mail_crypt_private_key = var.mail_crypt_private_key
|
||||
mail_crypt_public_key = var.mail_crypt_public_key
|
||||
}
|
||||
|
||||
module "gitea" {
|
||||
source = "../modules/gitea"
|
||||
|
||||
persistent_folder = local.persistent_folder
|
||||
database_folder = local.database_folder
|
||||
|
||||
backup_folder = local.gitea_backup_path
|
||||
backup_retention_days = local.local_backup_retention_days
|
||||
backup_cron_schedule = local.gitea_sql_backup_cron_schedule
|
||||
|
||||
db_password = var.gitea_mysql_password
|
||||
db_root_password = var.mysql_root_password
|
||||
|
||||
tag = local.gitea_version
|
||||
fqdn = local.gitea_fqdn
|
||||
app_name = "A13Labs git repository"
|
||||
|
||||
relay_smtp_host = local.scaleway_smtp_host
|
||||
relay_smtp_port = local.scaleway_smtp_port
|
||||
relay_smtp_username = var.scaleway_project_id
|
||||
relay_smtp_password = scaleway_iam_api_key.mail_app_api.secret_key
|
||||
|
||||
from_email = "gitea@${local.primary_domain}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user