4e5346e2e0
- Added rsync installation in setup-env action for file synchronization. - Excluded playbook_websites.yml from ansible-apply-playbook workflow. - Created a new workflow for building and releasing the Hugo website. - Added submodule for Hugo theme in .gitmodules. - Updated host_vars for production to include websites configuration. - Introduced playbook_websites.yml for managing static files deployment. - Implemented hugo_build script for building and archiving Hugo sites. - Updated inventory to include a new web group for website deployment. - Refactored Terraform configuration to support new website structure. - Removed deprecated WordPress Terraform configuration. - Added .gitignore files for websites and specific Hugo site. - Created archetype and configuration files for the Hugo site. - Added static assets including CV and images for the Hugo site. - Integrated Hugo profile theme as a submodule for the website.
90 lines
2.3 KiB
Terraform
90 lines
2.3 KiB
Terraform
locals {
|
|
|
|
# general
|
|
# storage
|
|
persistent_folder = "/mnt/microk8s_persistent"
|
|
database_folder = "/var/lib"
|
|
|
|
# domains
|
|
primary_domain = "alexpires.me"
|
|
websites = {
|
|
"alexpires.me" = {
|
|
domain_name = "alexpires.me"
|
|
fqdn = ["blog.alexpires.me", "www.alexpires.me", "alexpires.me"]
|
|
}
|
|
}
|
|
|
|
gitea_version = "1.23.4"
|
|
gitea_fqdn = "code.${local.primary_domain}"
|
|
gitea_sql_backup_cron_schedule = "20 2 * * *"
|
|
gitea_files_backup_cron_schedule = "30 2 * * *"
|
|
|
|
nextcloud_version = "30.0.0-apache"
|
|
nextcloud_fqdn = "cloud.${local.primary_domain}"
|
|
nextcloud_sql_backup_cron_schedule = "40 2 * * *"
|
|
nextcloud_files_backup_cron_schedule = "50 2 * * *"
|
|
|
|
# monitoring
|
|
influxdb_version = "1.8-alpine"
|
|
kapacitor_version = "1.6-alpine"
|
|
fluent_bit_version = "3.1"
|
|
telegraf_version = "1.32-alpine"
|
|
chronograf_version = "1.9-alpine"
|
|
|
|
# m3uproxy
|
|
m3uproxy_version = "latest"
|
|
wireguard_version = "1.0.20210914-r4-ls54"
|
|
squid_version = "6.1-23.10_edge"
|
|
m3uproxy_fqdn = "tv.${local.primary_domain}"
|
|
geoip_image = "maxmindinc/geoipupdate"
|
|
geoip_version = "latest"
|
|
|
|
geoip_cron_schedule = "0 0 * * *"
|
|
geoip_editions = [
|
|
"GeoLite2-Country",
|
|
"GeoLite2-City",
|
|
"GeoLite2-ASN"
|
|
]
|
|
|
|
# rustdesk
|
|
rustdesk_version = "latest"
|
|
rustdesk_fqdn = "rustdesk.${local.primary_domain}"
|
|
|
|
# backup
|
|
local_backup_retention_days = 2
|
|
cloud_backup_retention_days = 3
|
|
|
|
# mail settings
|
|
getmail_version = "v0.0.1-6.19.07"
|
|
fetch_emails_schedule = "*/2 * * * *"
|
|
mail_files_backup_cron_schedule = "0 3 * * *"
|
|
|
|
# email settings
|
|
scaleway_smtp_host = "smtp.tem.scw.cloud"
|
|
scaleway_smtp_port = 587
|
|
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"]
|
|
}
|
|
]
|
|
|
|
}
|
|
|
|
data "scaleway_account_project" "default" {
|
|
project_id = var.scaleway_project_id
|
|
organization_id = var.scaleway_organization_id
|
|
}
|