Misc updates to stokes

This commit is contained in:
Jonas Juselius
2021-06-12 11:46:35 +02:00
parent 0eaf306888
commit 20909aa8da
4 changed files with 49 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ let
webUI.allow = [
"10.1.2.0/24"
"172.19.254.0/24"
"172.19.255.0/24"
];
infiniband-exporter = {
enable = true;
@@ -140,6 +141,27 @@ let
smtp_from = "noreply@stokes.regnekraft.io";
};
services.nginx = {
virtualHosts = {
"ds.matnoc.regnekraft.io" = {
forceSSL = true;
enableACME = true;
serverAliases = [];
locations."/" = {
proxyPass = "http://127.0.0.1:9088";
proxyWebsockets = false;
extraConfig = ''
allow 10.1.2.0/24;
allow 172.19.254.0/24;
allow 172.19.255.0/24;
deny all;
'';
};
};
};
};
imports = [ ./cluster.nix ./hw/frontend.nix ];
};