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

@@ -46,7 +46,7 @@ let
);
in {
age.secrets.mixcloud-htpasswd = {
sops.secrets.mixcloud-htpasswd = {
owner = "nginx";
group = "nginx";
};
@@ -57,7 +57,7 @@ in {
forceSSL = true;
locations."/" = {
alias = "/data/mixcloud/";
basicAuthFile = config.age.secrets.mixcloud-htpasswd.path;
basicAuthFile = config.sops.secrets.mixcloud-htpasswd.path;
extraConfig = ''
autoindex on;
autoindex_exact_size off;
@@ -65,7 +65,7 @@ in {
};
locations."/media/" = {
alias = "/data/media/";
basicAuthFile = config.age.secrets.mixcloud-htpasswd.path;
basicAuthFile = config.sops.secrets.mixcloud-htpasswd.path;
extraConfig = ''
autoindex on;
autoindex_exact_size off;