1
0

hosts/storage-2: Migrate secrets to sops

This commit is contained in:
2024-05-02 13:10:17 +02:00
parent b8e666c075
commit c8c9526241
6 changed files with 33 additions and 34 deletions

View File

@@ -3,7 +3,7 @@
with lib;
{
age.secrets.firmware-htpasswd = {
sops.secrets.firmware-htpasswd = {
owner = "nginx";
group = "nginx";
};
@@ -14,7 +14,7 @@ with lib;
forceSSL = true;
locations."/" = {
alias = "/data/firmware/";
basicAuthFile = config.age.secrets.firmware-htpasswd.path;
basicAuthFile = config.sops.secrets.firmware-htpasswd.path;
extraConfig = ''
autoindex on;
autoindex_exact_size off;