Add node-red service to alexandria

This commit is contained in:
William 2023-07-17 17:53:48 -03:00
parent 14cce18e63
commit 32932bbac6
2 changed files with 20 additions and 0 deletions

View file

@ -12,6 +12,7 @@
./minecraft.nix ./minecraft.nix
./nextcloud.nix ./nextcloud.nix
./nginx.nix ./nginx.nix
./node-red.nix
./paperless.nix ./paperless.nix
./searx.nix ./searx.nix
./security.nix ./security.nix

View file

@ -0,0 +1,19 @@
{ inputs, config, pkgs, lib, ... }:
{
services = {
node-red = {
enable = true;
group = "hosted";
userDir = "/data/node-red";
};
nginx.virtualHosts."node-red.baduhai.me" = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
locations."/".proxyPass =
"http://127.0.0.1:${builtins.toString config.services.node-red.port}";
};
};
}