hosts/storage-2: use secrets for basic auth
This commit is contained in:
hosts/storage-2
@@ -1,4 +1,4 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
@@ -52,7 +52,7 @@ in {
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
alias = "/data/mixcloud/";
|
||||
basicAuthFile = "/var/src/secrets/nginx/mixcloud.htpasswd";
|
||||
basicAuthFile = config.age.secrets.mixcloud-htpasswd.path;
|
||||
extraConfig = ''
|
||||
autoindex on;
|
||||
autoindex_exact_size off;
|
||||
@@ -60,7 +60,7 @@ in {
|
||||
};
|
||||
locations."/media/" = {
|
||||
alias = "/data/media/";
|
||||
basicAuthFile = "/var/src/secrets/nginx/mixcloud.htpasswd";
|
||||
basicAuthFile = config.age.secrets.mixcloud-htpasswd.path;
|
||||
extraConfig = ''
|
||||
autoindex on;
|
||||
autoindex_exact_size off;
|
||||
|
10
hosts/storage-2/secrets/mixcloud-htpasswd.age
Normal file
10
hosts/storage-2/secrets/mixcloud-htpasswd.age
Normal file
@@ -0,0 +1,10 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 HwR33w Q6P3HFyTE3FEsrjnBx3TWIdv16GYLdAmnTZE2W5uex4
|
||||
A30r0PifK1ioVSgCTQen0gOlwKtbsAiD5YJPkQ98dIA
|
||||
-> ssh-ed25519 pI7EWw pFiBE+L4RrpIdOZH7EFHtQ+pVXSDMCtGbewbGAKDlkk
|
||||
5jicuCBcbH2Ob1jtoZrrm+jNNgw94Co3/A2tRrrNgxY
|
||||
-> :7)u]4Em-grease Xe>q ~'eWf Vx;#t
|
||||
fJtUbOaM0w5wrhpUl3dvjZ9BXimgrjK5eYs3g358AIEs/+BbuuR4ogCZsLyv9bXd
|
||||
smyFqW2xoxiANWGWWGY
|
||||
--- ba8304R6wM3M05dDRmIwZkwgrLUzwlrSGU3cGTpi00w
|
||||
~H<10><>a<EFBFBD>Hg<1D><>cެ|<05>v<1B><>|Js-β}<7D><><06><><EFBFBD>VF<56><46><EFBFBD>L<01><><1E>tme%<25>rqxC<78><43><10><>;Ғ<><D292><EFBFBD>7<1B>
|
Reference in New Issue
Block a user