Checks RED.settings.https is "something" and if yes:
switches the URL scheme to "https://"
Adds an HTTPS Agent & spreads whatever is in RED.settings.https into the Agent (permitting any extras to be included or to override the default rejectUnauthorized: false if so desired)
NOTE:
I have tested a variation of this code on a users VM (thanks for the support @Paul-Reed)
By variation, I mean an older branch but the relevant parts of this PR were used and verified.
fixes #1473
Description
Supersedes https://github.com/FlowFuse/node-red-dashboard/pull/1480
RED.settings.https
is "something" and if yes:Agent
& spreads whatever is inRED.settings.https
into the Agent (permitting any extras to be included or to override the defaultrejectUnauthorized: false
if so desired)NOTE:
I have tested a variation of this code on a users VM (thanks for the support @Paul-Reed) By variation, I mean an older branch but the relevant parts of this PR were used and verified.
Related Issue(s)
1473
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
area:migration
label