1
0

hosts/storage-2: use secrets for basic auth

This commit is contained in:
clerie 2023-05-02 20:40:30 +02:00
parent b60824e796
commit bf0a8a31c3
2 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with lib;
@ -52,7 +52,7 @@ in {
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
alias = "/data/mixcloud/"; alias = "/data/mixcloud/";
basicAuthFile = "/var/src/secrets/nginx/mixcloud.htpasswd"; basicAuthFile = config.age.secrets.mixcloud-htpasswd.path;
extraConfig = '' extraConfig = ''
autoindex on; autoindex on;
autoindex_exact_size off; autoindex_exact_size off;
@ -60,7 +60,7 @@ in {
}; };
locations."/media/" = { locations."/media/" = {
alias = "/data/media/"; alias = "/data/media/";
basicAuthFile = "/var/src/secrets/nginx/mixcloud.htpasswd"; basicAuthFile = config.age.secrets.mixcloud-htpasswd.path;
extraConfig = '' extraConfig = ''
autoindex on; autoindex on;
autoindex_exact_size off; autoindex_exact_size off;

View 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î±aÒHgÇÀcÞ¬|<05>vðÔ|Js-β}Áš„€VF¤ÄÙ Lï”»tme%ûrqxCñöÝõ;Ò’âÀÆ Ö7è