20 lines
438 B
Nix
20 lines
438 B
Nix
{ inputs, config, pkgs, lib, ... }:
|
|
|
|
{
|
|
services = {
|
|
node-red = {
|
|
enable = true;
|
|
group = "hosted";
|
|
withNpmAndGcc = true;
|
|
userDir = "/data/node-red";
|
|
};
|
|
|
|
nginx.virtualHosts."node-red.baduhai.dev" = {
|
|
useACMEHost = "baduhai.dev";
|
|
forceSSL = true;
|
|
kTLS = true;
|
|
locations."/".proxyPass =
|
|
"http://127.0.0.1:${builtins.toString config.services.node-red.port}";
|
|
};
|
|
};
|
|
}
|