module "vigil_nginx_config" { source = "git::https://code.techinc.nl/grey/terraform-nginx.git//nginx-site-available" hostname = "vigil.california.ti" //certificate = acme_certificate.ooo_grey["s3"] service_name = "vigil" upstream_host = "${module.vigil.docker_service_name}:8080" config_prefix = "nginx" allow_non_ssl = true allow_ssl = false } module "vigil" { source = "./modules/vigil" monitored_services = { "Servers" = [ { id = "longhorn" label = "Longhorn (longhorn.ti)" endpoints = [ "icmp://longhorn.ti", "tcp://longhorn.ti:22", #"https://longhorn.ti:8006", # cannot be used as the SSL cert is self-signed/invalid ] }, { id = "bargur" label = "Bargur (bargur.ti)" endpoints = [ "icmp://bargur.ti", "tcp://bargur.ti:22", #"https://bargur.ti:8006", # cannot be used as the SSL cert is self-signed/invalid ] }, { id = "hanwoo" label = "Hanwoo (hanwoo.ti)" endpoints = [ "icmp://hanwoo.ti", "tcp://hanwoo.ti:22", #"https://hanwoo.ti:8006" # cannot be used as the SSL cert is self-signed/invalid ] }, { id = "california" label = "California (california.ti)" endpoints = [ "icmp://california.ti", "tcp://california.ti:22", ] } ] "Printers" = [ { id = "prin.ti" label = "Prin.ti (Print Controller)" endpoints = [ "icmp://prin.ti", "tcp://prin.ti:22", "http://prin.ti:3000", ] }, { id = "v400" label = "FLSun V400" endpoints = [ "icmp://v400.prin.ti", "tcp://v400.prin.ti:22", "http://v400.prin.ti:80", ] } ], "Members Services" = [ { id = "sso" label = "SSO (auth.techinc.nl)" endpoints = [ "icmp://auth.techinc.nl", "https://auth.techinc.nl" ] }, { id = "forgejo" label = "TechInc Git Server" endpoints = [ "https://code.techinc.nl/api/v1/version" ] }, { id = "s3" label = "S3 (s3.california.ti)" endpoints = [ "icmp://s3.california.ti", "http://s3.california.ti/minio/health/live", "http://s3.california.ti/ui" ] } ] } docker_networks = [ docker_network.loadbalancer ] }