2024-09-24 15:28:19 +02:00
|
|
|
locals {
|
|
|
|
|
|
2025-04-24 22:47:25 +02:00
|
|
|
# general
|
|
|
|
|
# storage
|
|
|
|
|
persistent_folder = "/mnt/microk8s_persistent"
|
|
|
|
|
database_folder = "/var/lib"
|
|
|
|
|
|
2025-04-27 14:03:56 +02:00
|
|
|
# domains
|
|
|
|
|
primary_domain = "alexpires.me"
|
|
|
|
|
websites = {
|
|
|
|
|
"alexpires.me" = {
|
|
|
|
|
domain_name = "alexpires.me"
|
|
|
|
|
fqdn = ["blog.alexpires.me", "www.alexpires.me", "alexpires.me"]
|
2025-05-05 00:47:36 +02:00
|
|
|
config = file("${path.module}/resources/alexpires.me.conf")
|
2025-04-27 14:03:56 +02:00
|
|
|
}
|
|
|
|
|
}
|
2024-09-24 15:28:19 +02:00
|
|
|
|
2025-05-05 00:47:36 +02:00
|
|
|
# gitea
|
2025-04-27 22:36:18 +02:00
|
|
|
gitea_version = "1.23.4"
|
|
|
|
|
gitea_fqdn = "code.${local.primary_domain}"
|
2024-09-24 15:28:19 +02:00
|
|
|
|
2025-05-05 00:47:36 +02:00
|
|
|
# sftpgo
|
|
|
|
|
sftpgo_version = "2.6.x"
|
2025-05-05 19:56:43 +02:00
|
|
|
sftpgo_fqdn = "webdav.${local.primary_domain}"
|
2024-10-03 23:03:41 +02:00
|
|
|
|
|
|
|
|
# m3uproxy
|
2025-04-29 19:33:33 +02:00
|
|
|
m3uproxy_version = "latest"
|
|
|
|
|
m3uproxy_fqdn = "tv.${local.primary_domain}"
|
2024-09-25 21:01:16 +02:00
|
|
|
|
2025-05-05 00:47:36 +02:00
|
|
|
# geoip
|
2024-09-25 21:01:16 +02:00
|
|
|
geoip_cron_schedule = "0 0 * * *"
|
|
|
|
|
geoip_editions = [
|
|
|
|
|
"GeoLite2-Country",
|
|
|
|
|
"GeoLite2-City",
|
|
|
|
|
"GeoLite2-ASN"
|
|
|
|
|
]
|
2024-09-24 15:28:19 +02:00
|
|
|
|
2025-04-29 19:33:33 +02:00
|
|
|
rustdesk_fqdn = "rustdesk.${local.primary_domain}"
|
2024-10-26 21:41:10 +02:00
|
|
|
|
2024-09-24 15:28:19 +02:00
|
|
|
# backup
|
2025-05-05 00:47:36 +02:00
|
|
|
local_backup_retention_days = 2
|
|
|
|
|
cloud_backup_retention_days = 3
|
|
|
|
|
mail_backup_path = "${local.persistent_folder}/backup.mail"
|
|
|
|
|
gitea_backup_path = "${local.persistent_folder}/backup.gitea"
|
|
|
|
|
sftpgo_backup_path = "${local.persistent_folder}/backup.sftpgo"
|
|
|
|
|
gitea_sql_backup_cron_schedule = "20 2 * * *"
|
|
|
|
|
gitea_files_backup_cron_schedule = "30 2 * * *"
|
|
|
|
|
sftpgo_files_backup_cron_schedule = "50 2 * * *"
|
|
|
|
|
mail_files_backup_cron_schedule = "0 3 * * *"
|
2024-09-24 15:28:19 +02:00
|
|
|
|
2025-03-15 23:01:46 +01:00
|
|
|
|
2025-04-24 22:47:25 +02:00
|
|
|
# email settings
|
2025-05-05 00:47:36 +02:00
|
|
|
fetch_emails_schedule = "*/2 * * * *"
|
|
|
|
|
scaleway_smtp_host = "smtp.tem.scw.cloud"
|
|
|
|
|
scaleway_smtp_port = 587
|
2025-04-24 22:47:25 +02:00
|
|
|
email_accounts = [
|
|
|
|
|
{
|
|
|
|
|
domain = "alexpires.me"
|
|
|
|
|
recipient = "c.alexandre.pires"
|
|
|
|
|
receive = {
|
|
|
|
|
type = "imap"
|
|
|
|
|
server = "mail-pt.securemail.pro"
|
|
|
|
|
port = 993
|
|
|
|
|
}
|
|
|
|
|
send = {
|
|
|
|
|
server = "smtp-pt.securemail.pro"
|
|
|
|
|
port = 465
|
|
|
|
|
}
|
|
|
|
|
username = var.alexpires_me_email_username
|
|
|
|
|
password = var.alexpires_me_email_password
|
|
|
|
|
mailboxes = ["INBOX", "Sent", "Drafts", "Trash", "Spam"]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
2024-09-24 15:28:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data "scaleway_account_project" "default" {
|
|
|
|
|
project_id = var.scaleway_project_id
|
|
|
|
|
organization_id = var.scaleway_organization_id
|
|
|
|
|
}
|