l 2 websites fritz: password protect some dirs
This commit is contained in:
parent
ae3a2a954d
commit
61c57a2d53
|
@ -1,10 +1,10 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
let
|
let
|
||||||
inherit (import <stockholm/krebs/4lib> { config = {}; inherit lib; })
|
inherit (import <stockholm/krebs/4lib> { config = {}; inherit lib; })
|
||||||
genid
|
genid
|
||||||
head
|
head
|
||||||
nameValuePair
|
|
||||||
;
|
;
|
||||||
inherit (import <stockholm/lass/2configs/websites/util.nix> {inherit lib pkgs;})
|
inherit (import <stockholm/lass/2configs/websites/util.nix> {inherit lib pkgs;})
|
||||||
ssl
|
ssl
|
||||||
|
@ -58,6 +58,18 @@ in {
|
||||||
"ttf_kleinaspach_de"
|
"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 = [
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
config.krebs.users.fritz.pubkey
|
config.krebs.users.fritz.pubkey
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue