feat(terraform): remove websites module and add m3uproxy and nginx modules
- Deleted the websites module from the Terraform configuration. - Introduced a new m3uproxy module with resources for Kubernetes namespace, secrets, config maps, deployments, services, and cron jobs. - Added configuration files for m3uproxy, including JSON and playlist resources. - Created a new nginx module with resources for Kubernetes namespace, services, config maps, deployments, and ingress. - Added necessary variables for both m3uproxy and nginx modules. - Updated provider configurations for m3uproxy and nginx modules to specify required versions.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
module "websites" {
|
||||
source = "../modules/nginx"
|
||||
persistent_folder = local.persistent_folder
|
||||
primary_domain = local.primary_domain
|
||||
websites = local.websites
|
||||
}
|
||||
|
||||
module "rustdesk" {
|
||||
source = "../modules/rustdesk"
|
||||
|
||||
persistent_folder = local.persistent_folder
|
||||
fqdn = local.rustdesk_fqdn
|
||||
public_key = var.rustdesk_public_key
|
||||
private_key = var.rustdesk_private_key
|
||||
}
|
||||
|
||||
module "m3uproxy" {
|
||||
source = "../modules/m3uproxy"
|
||||
|
||||
persistent_folder = local.persistent_folder
|
||||
tag = local.m3uproxy_version
|
||||
fqdn = local.m3uproxy_fqdn
|
||||
|
||||
# Secret and password for M3UProxy
|
||||
secret = var.m3uproxy_secret
|
||||
admin_password = var.m3uproxy_admin_password
|
||||
|
||||
# GeoIP settings
|
||||
maxmind_account_id = var.maxmind_account_id
|
||||
maxmind_license_key = var.maxmind_license_key
|
||||
geoip_cron_schedule = local.geoip_cron_schedule
|
||||
geoip_editions = local.geoip_editions
|
||||
|
||||
# Wireguard settings (VPN)
|
||||
wireguard_private_key = var.wireguard_private_key
|
||||
wireguard_public_key = var.wireguard_public_key
|
||||
}
|
||||
Reference in New Issue
Block a user