1
0

hosts/storage-2: use secrets for basic auth

This commit is contained in:
2023-05-02 20:40:30 +02:00
parent b60824e796
commit bf0a8a31c3
2 changed files with 13 additions and 3 deletions
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;

@@ -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>