l neoprism.r: add gsm-wiki
This commit is contained in:
parent
e30c8df742
commit
685a59210a
@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
<stockholm/lass>
|
||||
<stockholm/lass/2configs/retiolum.nix>
|
||||
<stockholm/lass/2configs/gsm-wiki.nix>
|
||||
|
||||
# sync-containers
|
||||
<stockholm/lass/2configs/consul.nix>
|
||||
|
26
lass/2configs/gsm-wiki.nix
Normal file
26
lass/2configs/gsm-wiki.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."docs.c3gsm.de" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".extraConfig = ''
|
||||
auth_basic "Restricted Content";
|
||||
auth_basic_user_file ${pkgs.writeText "flix-user-pass" ''
|
||||
c3gsm:$apr1$q9OrPI4C$7AY4EIp3J2Xc4eLMbPGE21
|
||||
''};
|
||||
root /srv/http/docs.c3gsm.de;
|
||||
'';
|
||||
};
|
||||
|
||||
users.users.c3gsm-docs = {
|
||||
isNormalUser = true;
|
||||
home = "/srv/http/docs.c3gsm.de";
|
||||
createHome = true;
|
||||
homeMode = "750";
|
||||
useDefaultShell = true;
|
||||
group = "nginx";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAlW1fvCrVXhVH/z76fXBWYR/qyecYTE9VOOkFLJ6OwG user@osmocom-dev"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user