[taskserv]
name = "vapora-frontend"
type = "service"
version = "0.2.0"
description = "VAPORA Frontend (Leptos CSR + UnoCSS)"

[source]
repository = "ssh://git@repo.jesusperez.pro:32225/jesus/Vapora.git"
branch = "main"
path = "vapora-frontend/"

[build]
runtime = "rust"
build_command = "trunk build --release"
artifact_path = "dist/"

[deployment]
namespace = "vapora-system"
replicas = 2
image = "vapora/frontend"
image_tag = "${version}"

[ports]
http = 3000

[resources]
requests = { cpu = "500m", memory = "512Mi" }
limits = { cpu = "1000m", memory = "1Gi" }

[health_check]
type = "http"
path = "/"
initial_delay_secs = 10
interval_secs = 30

[environment]
API_ENDPOINT = "http://vapora-backend.vapora-system:8080"
ENVIRONMENT = "production"

[scaling]
min_replicas = 2
max_replicas = 5
target_cpu = 60

[update_strategy]
type = "RollingUpdate"
max_surge = 1
max_unavailable = 0

[persistence]
enabled = false

[monitoring]
prometheus_metrics = false
