terraform-nixos #1

Closed
kiara wants to merge 57 commits from terraform-nixos into tf
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 8f785d7582 - Show all commits

View file

@ -1,6 +1,5 @@
{
config,
pkgs,
...
}:
let
@ -55,6 +54,9 @@ in
CSRF_TRUSTED_ORIGINS = [ "https://${cfg.domain}" ];
COMPRESS_OFFLINE = true;
LIBSASS_OUTPUT_STYLE = "compressed";
ENV_VARS = {
ssh_private_key_file = config.age.secrets.panel-ssh-key.path;
};
};
secrets = {
SECRET_KEY = config.age.secrets.panel-secret-key.path;

View file

@ -146,7 +146,7 @@ class DeploymentStatus(ConfigurationForm):
} | {
# pass in form info to our deployment
# FIXME: ensure sensitive info is protected
f"TF_VAR_{k}": v if isinstance(v, str) else json.dumps(v) for k, v in deployment_params.items()
f"TF_VAR_{k}": v if isinstance(v, str) else json.dumps(v) for k, v in (settings.ENV_VARS | deployment_params).items()
}
cwd = f"{settings.repo_dir}/launch"
cmd = [