From 4461bca01a56acb12be9aff2b216de91ebd17da6 Mon Sep 17 00:00:00 2001 From: Max Boone Date: Mon, 30 Sep 2024 10:31:53 +0200 Subject: [PATCH] feat: add the possibility for a custom login server --- main.tf | 2 +- variables.tf | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 50ccf6f..1284dc3 100644 --- a/main.tf +++ b/main.tf @@ -109,7 +109,7 @@ resource "aws_ecs_task_definition" "default" { }, { name = "TS_EXTRA_ARGS" - value = "--hostname ${var.name}" + value = "--hostname ${var.name} --login-server ${var.tailscale_login_server}" }, { name = "TS_TAILSCALED_EXTRA_ARGS", diff --git a/variables.tf b/variables.tf index 426bcc2..9513b9c 100644 --- a/variables.tf +++ b/variables.tf @@ -31,7 +31,13 @@ variable "tailscale_version" { default = "1.44.0" } +variable "tailscale_login_server" { + type = string + description = "Tailscale login server (for instance, a headscale server)" + default = "https://controlplane.tailscale.com" +} + variable "vpc_id" { type = string description = "id of the VPC to launch the router in" -} +} \ No newline at end of file