commit 70f03b7f670800940747d1d1f85018da0bfe8901
parent fa7f1fbed19236b75fe90f4e92e6a8501775e77f
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 5 Nov 2020 08:34:50 +0100
systems/kerkouane: protect private folder
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/systems/kerkouane.nix b/systems/kerkouane.nix
@@ -46,6 +46,12 @@ let
fancyindex_name_length 255;
'';
};
+ locations."/private" = {
+ extraConfig = ''
+ auth_basic "Restricted";
+ auth_basic_user_file /home/vincent/desktop/sites/dl.sbr.pm/private/.htpasswd;
+ '';
+ };
extraConfig = nginxExtraConfig;
};