Node-red: Difference between revisions
TobiasBora (talk | contribs) Created the node-red page. |
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 | </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 | 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; |