# Environment file for the almad systemd unit.
#
# Path:        /etc/almaforge/almad.env
# Permissions: chmod 600 (the join token is sensitive)

# Proxy address (host:port).
ALMA_PROXY=almaforge.example.com:443

# Join token from `alma create token --services=ssh --client-id=<name>`.
# Default TTL: 30 minutes. The token is NOT single-use and stays
# valid for that window. After first connect, identity is persisted
# under /var/lib/almaforge and the token is no longer used.
# Revoke a leaked token with `alma delete token/<client-id>`.
ALMA_CLIENT_ID=paste-client-id-here
ALMA_CLIENT_SECRET=paste-client-secret-here

# A proxy join verifies the Proxy certificate against this host's
# system trust store. Use a publicly trusted certificate or install its
# signing CA in that store. ALMA_CA_PIN pins the Auth Service CA for a
# direct join selected by ALMA_AUTH_SERVER. If ALMA_PROXY is also set,
# the Proxy takes precedence and ALMA_CA_PIN is ignored.

# Enable the SSH Service role.
ALMA_SSH_SERVICE=true

# ALMA_LABELS sets operator-defined labels as comma-separated key=value
# pairs. They appear in audit events and `alma get servers`. Use stable
# keys such as env, region, and team. Keep fast-changing values out of
# this setting. Render inventory labels into this value when you
# provision the host.
#
# The agent also advertises generated labels. It refreshes AWS and Azure
# tags from instance metadata once an hour and prefixes their keys
# with aws/ or azure/. Hetzner supplies hetzner/instance-id,
# hetzner/region, hetzner/availability-zone, hetzner/hostname, and
# hetzner/local-ipv4. Every host that sends heartbeats also advertises
# internal/expires. Role serverLabels matchers evaluate the full set.
ALMA_LABELS=env=prod,region=eu-central-1,team=sre

# Optional short identifier for this node (defaults to OS hostname).
# Must be unique within the cluster.
# ALMA_NODE_NAME=web-01
