summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-06-18 19:21:32 +0200
committerlassulus <lass@aidsballs.de>2016-06-18 19:21:32 +0200
commit61c57a2d533334a77d2a0c2cea3fee6380605a0f (patch)
treeec53b13d84df7ca9c02f7e48fe0cec35ceed9655 /lass
parentae3a2a954d767127ae1c144685293c03a01cf1c8 (diff)
l 2 websites fritz: password protect some dirs
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/websites/fritz.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/lass/2configs/websites/fritz.nix b/lass/2configs/websites/fritz.nix
index c2b8ff116..03574d578 100644
--- a/lass/2configs/websites/fritz.nix
+++ b/lass/2configs/websites/fritz.nix
@@ -1,10 +1,10 @@
{ config, pkgs, lib, ... }:
+with lib;
let
inherit (import <stockholm/krebs/4lib> { config = {}; inherit lib; })
genid
head
- nameValuePair
;
inherit (import <stockholm/lass/2configs/websites/util.nix> {inherit lib pkgs;})
ssl
@@ -58,6 +58,18 @@ in {
"ttf_kleinaspach_de"
];
+ #password protect some dirs
+ krebs.nginx.servers."biostase.de".locations = [
+ (nameValuePair "/old_biostase.de" ''
+ auth_basic "Administrator Login";
+ auth_basic_user_file /srv/http/biostase.de/old_biostase.de/.htaccess;
+ '')
+ (nameValuePair "/mysqldumper" ''
+ auth_basic "Administrator Login";
+ auth_basic_user_file /srv/http/biostase.de/mysqldumper/.htaccess;
+ '')
+ ];
+
users.users.root.openssh.authorizedKeys.keys = [
config.krebs.users.fritz.pubkey
];