Update password management.
This commit is contained in:
parent
70f6cc7930
commit
e7d4f3d4a1
2 changed files with 23 additions and 11 deletions
|
|
@ -41,6 +41,18 @@ in {
|
|||
];
|
||||
|
||||
config = {
|
||||
# Pass secrets to Stalwart Mail service via environment variables
|
||||
systemd.services.stalwart-mail = {
|
||||
serviceConfig = {
|
||||
EnvironmentFile = [
|
||||
config.sops.secrets."cloudflare-username".path
|
||||
config.sops.secrets."cloudflare-dns-token".path
|
||||
config.sops.secrets."admin-password".path
|
||||
config.sops.secrets."board-member-password".path
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Enable Tailscale for remote access to Traefik dashboard and configuration
|
||||
services.tailscale.enable = true;
|
||||
|
||||
|
|
@ -99,10 +111,10 @@ in {
|
|||
acme."letsencrypt" = {
|
||||
directory = "https://acme-v02.api.letsencrypt.org/directory";
|
||||
challenge = "dns-01";
|
||||
contact = config.sops.secrets."cloudflare-username";
|
||||
contact = "$CLOUDFLARE_USERNAME";
|
||||
domains = ["prg-radio.org" "mail.prg-radio.org"];
|
||||
provider = "cloudflare";
|
||||
secret = config.sops.secrets."cloudflare-dns-token";
|
||||
secret = "$CLOUDFLARE_API_TOKEN";
|
||||
};
|
||||
session.auth = {
|
||||
mechanisms = "[plain]";
|
||||
|
|
@ -117,20 +129,20 @@ in {
|
|||
{
|
||||
class = "individual";
|
||||
name = "Polyteknisk Radiogruppe Board Member";
|
||||
secret = config.sops.secrets."board-member-password";
|
||||
secret = "$BOARD_PASSWORD";
|
||||
email = ["board@prg-radio.org"];
|
||||
}
|
||||
{
|
||||
class = "individual";
|
||||
name = "postmaster";
|
||||
secret = config.sops.secrets."board-member-password";
|
||||
secret = "$BOARD_PASSWORD";
|
||||
email = ["postmaster@prg-radio.org"];
|
||||
}
|
||||
];
|
||||
};
|
||||
authentication.fallback-admin = {
|
||||
user = "admin";
|
||||
secret = config.sops.secrets."admin-password";
|
||||
secret = "$ADMIN_PASSWORD";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue