Migrate ikiwiki to sops-nix
This commit is contained in:
parent
668f2ef4d8
commit
bff3401ada
6 changed files with 52 additions and 12 deletions
|
|
@ -26,7 +26,7 @@ in
|
|||
tryFiles = "$uri $uri/ =404";
|
||||
};
|
||||
"~ .cgi" = {
|
||||
basicAuthFile = "/secrets/ikiwiki-auth-file.secret";
|
||||
basicAuthFile = "/run/secrets/auth_file";
|
||||
extraConfig = ''
|
||||
gzip off;
|
||||
fastcgi_pass unix:${config.services.fcgiwrap.instances."ikiwiki".socket.address};
|
||||
|
|
@ -45,4 +45,11 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets."auth_file" = {
|
||||
mode = "0440";
|
||||
owner = "nginx";
|
||||
group = "nginx";
|
||||
restartUnits = [ "nginx.service" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue