Node-red: Difference between revisions

Created the node-red page.
 
Pigs (talk | contribs)
Don
 
Line 10: Line 10:
… http://127.0.0.1:1880/
… http://127.0.0.1:1880/
</syntaxhighlight>and you will see the address of the website that is loaded in the log, typically http://127.0.0.1:1880/. Just open the link, and start to use node-red (you may also want to check the command line options of node-red to configure it further). Note that if you want to imperatively install new nodes, you may need to enable [[nix-ld]] if you run NixOs.
</syntaxhighlight>and you will see the address of the website that is loaded in the log, typically http://127.0.0.1:1880/. Just open the link, and start to use node-red (you may also want to check the command line options of node-red to configure it further). Note that if you want to imperatively install new nodes, you may need to enable [[nix-ld]] if you run NixOS.


=== As a publicly accessible website ===
=== As a publicly accessible website ===
If you want to configure it as a permanent, always active service, on your own computer, you can configure the [https://search.nixos.org/options?channel=24.11&size=50&sort=relevance&type=packages&query=services.node-red services.node-red] module. Below, we describe a more advanced usecase where you also want to make the service available online, behind an Nginx server in charge of configuring automatically the https certificate.<syntaxhighlight lang="nixos">{ lib, pkgs, config, ... }:
If you want to configure it as a permanent, always active service, on your own computer, you can configure the {{nixos:option|services.node-red}} module. Below, we describe a more advanced usecase where you also want to make the service available online, behind an [[Nginx]] server in charge of configuring automatically the https certificate.<syntaxhighlight lang="nix">{ lib, pkgs, config, ... }:
let
let
   cfg = config.services.node-red;
   cfg = config.services.node-red;