summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-04-23 12:36:04 +0200
committerlassulus <git@lassul.us>2023-04-23 12:36:04 +0200
commit685a59210a4dd2f254d9c6d98267d1fb8c9a2333 (patch)
treef26e030a297f612b6fe0a4e0d37b543857fdcc6f
parente30c8df7424a67b0c5bac13d06a70c6215429d5c (diff)
l neoprism.r: add gsm-wiki
-rw-r--r--lass/1systems/neoprism/config.nix1
-rw-r--r--lass/2configs/gsm-wiki.nix26
2 files changed, 27 insertions, 0 deletions
diff --git a/lass/1systems/neoprism/config.nix b/lass/1systems/neoprism/config.nix
index cc08070af..7b402f8a6 100644
--- a/lass/1systems/neoprism/config.nix
+++ b/lass/1systems/neoprism/config.nix
@@ -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>
diff --git a/lass/2configs/gsm-wiki.nix b/lass/2configs/gsm-wiki.nix
new file mode 100644
index 000000000..69508a155
--- /dev/null
+++ b/lass/2configs/gsm-wiki.nix
@@ -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"
+ ];
+ };
+}