1
0

hosts/web-2: radicale use secrets

This commit is contained in:
2023-05-02 20:52:00 +02:00
parent bf0a8a31c3
commit a2deec6dfb
2 changed files with 18 additions and 2 deletions

View File

@@ -1,6 +1,11 @@
{ ... }:
{ config, ... }:
{
age.secrets.radicale-htpasswd = {
owner = "radicale";
group = "radicale";
};
services.radicale = {
enable = true;
settings = {
@@ -9,7 +14,7 @@
};
auth = {
type = "htpasswd";
htpasswd_filename = "/var/src/secrets/radicale/htpasswd";
htpasswd_filename = config.age.secrets.radicale-htpasswd.path;
htpasswd_encryption = "bcrypt";
};
storage = {