hosts/storage-2: Migrate secrets to sops
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user