Commit Graph

51 Commits

Author SHA1 Message Date
Rotzbua aea32cc279
Migrate http -> https for nodered.org 2023-09-05 14:55:56 +02:00
Nick O'Leary 33899763ef
Add support for httpStatic middleware 2023-06-21 16:47:47 +01:00
Nick O'Leary 9479b56549
Merge pull request #4109 from kevinGodell/dev
httpStatic feature
2023-05-22 16:54:29 +01:00
Nick O'Leary e6c454bba5
Ensure non-zero exit codes for errors 2023-05-22 15:11:57 +01:00
Kevin Godell 54b2215164 pass options to express.static 2023-03-20 17:51:05 -05:00
Kevin Godell 889489e33e set default when root is not defined 2023-03-20 17:51:05 -05:00
bggbr 892d21fb77
Fix "EADDRINUSE" error 2023-02-03 22:23:09 +09:00
Stephen McLaughlin 7f68e341da
Merge branch 'dev' into master 2022-05-03 09:35:32 +01:00
Steve-Mcl 22000f10df Add support for multiple static paths with root
closes #3510
2022-04-22 17:06:40 +01:00
Ben Hardill cdcc8cc59a
Update packages/node_modules/node-red/red.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2022-04-21 15:47:40 +01:00
Ben Hardill 0014fec63f
Remove test that exits if no userDir defined
With the storage plugins it is possible to not need a userDir, just a
settings.js
2022-04-21 13:52:38 +01:00
Ben Hardill 812efde342
Also check if there is a useDir defined 2022-04-21 12:00:10 +01:00
Ben Hardill 889f0e1569
Don't start if user has no home directory
If the user doesn't have a defined home dir (env var `HOME`,
`USERPROFILE` or `HOMEPATH`) and the `userDir` is not passed on the
command line then we shouldn't start as we don't know where to copy the
default `settings.js` file to or where to store flows

fixes #3539
2022-04-21 11:40:12 +01:00
Ben Hardill 2e7188ea4f
Add environment variable to enable/disable tours
NODE_RED_ENABLE_TOURS

Also had to patch editor-api/lib/editor/themes.js to pass
`editorTheme.tours` to the editor.
2021-10-25 11:25:31 +01:00
Nick O'Leary 273d9c76a7
Add fallback when logging uncaughtExceptions 2021-10-06 17:33:04 +01:00
Renato Junior bd142a9710
uncaughtException debug improvements
Changed error uncaughtException tracing
2021-09-17 22:02:48 -03:00
bartbutenaers 7f2627dbc8
Key and certificate as string or buffer 2021-08-21 22:21:58 +02:00
Nick O'Leary a9b252b8fa
Ensure httpServerOptions gets applied to ALL the express apps
This is silly. Turns out setting options at a top level app
does not percolate down to sub apps (and vice versa). You
have to apply the options to ALL express apps.
2021-06-08 21:17:42 +01:00
Nick O'Leary b62e4f6662
Fix deprecation of httpRoot 2021-04-26 14:43:06 +01:00
Nick O'Leary 5992ed1fab
Fully remove when.js dependency 2020-12-07 11:49:01 +00:00
Nick O'Leary 6d294a0c74
Prevent RED.stop being called multiple times if >1 signal received 2020-06-09 08:23:12 +01:00
Nick O'Leary c048b1a25b
Exit with non-0 rc if admin command fails 2020-06-04 11:02:48 +01:00
Nick O'Leary c8f6100a6a
Assume -d params are strings if they don't otherwise parse 2020-06-04 00:04:41 +01:00
Nick O'Leary 3b3a2d4edc
Merge pull request #2592 from node-red/admin-cli
Add node-red admin support
2020-06-03 20:59:19 +01:00
Nick O'Leary 43d5df4a12
Merge branch 'dev' into catch-more-signals 2020-06-03 19:26:50 +01:00
Nick O'Leary 3e74d75f28
Add node-red admin support 2020-06-02 23:39:36 +01:00
Nick O'Leary 1b497b340b
Merge branch 'pr_2551' into dev 2020-05-29 16:52:19 +01:00
Nick O'Leary bb41ab482c
Rework the https refresh logic
- puts the node version check first
 - validates the refresh interval and keeps it in valid range
 - simplifies the error messages
 - uses parseFloat not parseInt so we can use fractions of hour
2020-05-29 16:50:53 +01:00
Nick O'Leary 215aab0fe4
Modify format of -D settings file 2020-05-29 11:44:13 +01:00
bartbutenaers 4adcb9c439
Refresh interval in hours 2020-05-29 00:08:07 +02:00
bartbutenaers dec3762b7a
Remove debugger statement 2020-05-14 22:43:50 +02:00
bartbutenaers 6c766eba86
Logs internationalisation 2020-05-13 23:46:33 +02:00
bartbutenaers cc760acb62
Update packages/node_modules/node-red/red.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2020-05-13 23:24:57 +02:00
bartbutenaers f4d4bf8779
Update packages/node_modules/node-red/red.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2020-05-13 23:24:40 +02:00
bartbutenaers 90f62e5e4a
Update packages/node_modules/node-red/red.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2020-05-13 23:23:29 +02:00
bartbutenaers bfa5f39b6d
Asynchronous https support 2020-05-11 23:33:54 +02:00
bartbutenaers f7e0f55c13
httpsRefreshInterval in seconds 2020-05-02 22:24:04 +02:00
bartbutenaers f468d6e947
Rename fix 2020-05-02 14:40:01 +02:00
bartbutenaers 00d41c6de2
Refresh https settings 2020-05-02 07:52:20 +02:00
Hiroyasu Nishiyama 82539fc420 update for merging settings object & better error handling 2020-03-07 19:19:48 +09:00
Hiroyasu Nishiyama c0d007ffa9 add option support for overwriting settiings.js 2020-02-16 23:07:05 +09:00
Dave Conway-Jones b2f53a183e
rename BreakingExit call
(undo Brexit :-)
2020-02-05 13:58:45 +00:00
Dave Conway-Jones 0622be843b
Add catcher for PM2 graceful shutdown 2020-02-04 13:42:34 +00:00
Dave Conway-Jones fcf757f715
catch mode signals to allow clean context flush on shutdown
(yes the name is intentionally ironic)
Code pattern copied from https://nodejs.org/api/process.html#process_signal_events
2020-01-31 18:11:58 +00:00
Nick O'Leary c7bbe2f1fe Add env vars to enable safe mode and projects (#2301)
* Add NODE_RED_ENABLE_SAFE_MODE and NODE_RED_ENABLE_PROJECTS

* Allow env-vars to be set to false to disable features
2019-10-03 20:31:16 +01:00
Kazuhito Yokoi fde8548166 Remove handling for unused error code 2019-08-06 19:30:05 +09:00
Kazuhito Yokoi 15b99c5749 Use appropriate the version of Node.js 2019-08-06 19:24:45 +09:00
Nick O'Leary c283224000
Merge branch 'master' into dev 2018-12-13 11:14:58 +00:00
Nick O'Leary d887ab126b
Add --safe mode flag to allow starting without flows running 2018-09-25 11:20:50 +01:00
Nick O'Leary 998bf92ad4
Move tests to reflect package structure 2018-08-19 11:28:03 +01:00