Fix host secrets (add src/target)

This commit is contained in:
niten 2023-07-26 16:50:22 -07:00
parent ada9b0cd3a
commit e5c44d3bd8
1 changed files with 11 additions and 2 deletions

View File

@ -217,9 +217,18 @@ in {
SMTP_PORT = toString cfg.smtp.port; SMTP_PORT = toString cfg.smtp.port;
SMTP_FROM_ADDRESS = "noreply@${cfg.web-domain}"; SMTP_FROM_ADDRESS = "noreply@${cfg.web-domain}";
}; };
target-file = "/run/mastodon/common.env";
};
postgresEnv = {
source-file = makeEnvFile {
DB_HOST = "/var/run/postgresql";
target-file = "/run/mastodon/postgres.env";
};
};
mastodonEnv = {
source-file = makeEnvFile { DB_HOST = "postgres"; };
target-file = "/run/mastodon/mastodon.env";
}; };
postgresEnv = makeEnvFile { DB_HOST = "/var/run/postgresql"; };
mastodonEnv = makeEnvFile { DB_HOST = "postgres"; };
}; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [