hosts/storage-2: use secrets for basic auth
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user