# restard defaults. Loaded by systemd as EnvironmentFile=-
# (the leading dash means "tolerate a missing file").
#
# All env vars consumed by restard are documented here, set to safe defaults.
# Operator edits this file to override; dpkg preserves changes on upgrade
# (listed in debian/conffiles).

# Listen address for the HTTP listener. Binds to localhost by default;
# set to 0.0.0.0 to accept connections from other hosts (combine with
# firewall rules).
LISTEN_ADDR=127.0.0.1:8080

# Per-service tokens. Format: RESTARD_TOKEN_<UPPERCASE_NAME>=<literal-or-file-path>.
# If the value starts with /, restard reads the file contents as the token
# (whitespace trimmed); an unreadable file emits a WARN and drops the
# service. Recommended layout: token files under /etc/restard/tokens.d/<NAME>,
# mode 0640 owner restard:restard, surfaced via systemd LoadCredential=.
#
# Example (literal token):
#   RESTARD_TOKEN_WEB=hunter1
#
# Example (file-backed token, paired with LoadCredential=token-web:...):
#   RESTARD_TOKEN_WEB=/run/credentials/restard.service/token-web
#
#RESTARD_TOKEN_WEB=
#RESTARD_TOKEN_API=

# Per-service systemd unit names. Format: RESTARD_SERVICE_<UPPERCASE_NAME>=<unit>.
# The unit must be visible to the restard system user (polkit rule in
# debian/50-restard.rules gates RestartUnit on subject.user == "restard"
# AND verb == "restart").
#
# Example:
#   RESTARD_SERVICE_WEB=nginx.service
#   RESTARD_SERVICE_API=api.service
#
#RESTARD_SERVICE_WEB=
#RESTARD_SERVICE_API=