summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-03 12:06:05 +0200
committerlassulus <git@lassul.us>2023-09-03 12:06:05 +0200
commit48e371a59786ba235f7421fcea71f91d9a7e1b32 (patch)
tree417b83f368d026ccc338c0d5cdfaf63ec8e1b575 /lass
parent2395c9c0261d043027798d53962c75ccc630da82 (diff)
l gsm-wiki: add c3gsm.de vhost
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/gsm-wiki.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/2configs/gsm-wiki.nix b/lass/2configs/gsm-wiki.nix
index 69508a155..77b944ef8 100644
--- a/lass/2configs/gsm-wiki.nix
+++ b/lass/2configs/gsm-wiki.nix
@@ -12,6 +12,14 @@
'';
};
+ services.nginx.virtualHosts."c3gsm.de" = {
+ forceSSL = true;
+ enableACME = true;
+ locations."/".extraConfig = ''
+ root /srv/http/c3gsm.de;
+ '';
+ };
+
users.users.c3gsm-docs = {
isNormalUser = true;
home = "/srv/http/docs.c3gsm.de";
@@ -23,4 +31,16 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAlW1fvCrVXhVH/z76fXBWYR/qyecYTE9VOOkFLJ6OwG user@osmocom-dev"
];
};
+
+ users.users.c3gsm = {
+ isNormalUser = true;
+ home = "/srv/http/c3gsm.de";
+ createHome = true;
+ homeMode = "750";
+ useDefaultShell = true;
+ group = "nginx";
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAlW1fvCrVXhVH/z76fXBWYR/qyecYTE9VOOkFLJ6OwG user@osmocom-dev"
+ ];
+ };
}