Added environment variable to override protocol for in-page URLs #299
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This provides support for using nodeRED with docker behind a reverse proxy like caddy. Caddy handles the https and SSL key generation/updates, allowing simpler deploys of nodeRED in http mode. Without the ability to override the protocol, files like jQuery.js and others are requested using the same protocol as the main site - in this case, http, causing the browser to block them since the site URL is https.
I added to the README instead of editing the wiki, since I don't know how to add to the wiki as part of this PR. Let me know if you’d prefer this moved to the wiki.