Add node-red service to alexandria
This commit is contained in:
parent
14cce18e63
commit
32932bbac6
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
19
hosts/servers/alexandria/node-red.nix
Normal file
19
hosts/servers/alexandria/node-red.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue