Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support internal HTTPS for WYSIWYG #1480

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion nodes/config/ui_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,17 @@
const host = RED.settings.uiHost
const port = RED.settings.uiPort
const httpAdminRoot = RED.settings.httpAdminRoot
const url = 'http://' + (`${host}:${port}/${httpAdminRoot}flows`).replace('//', '/')
let scheme = 'http://'
let httpsAgent
if (RED.settings.requireHttps) {
if (RED.settings.https) {
httpsAgent = new Agent({

Check failure on line 1137 in nodes/config/ui_base.js

View workflow job for this annotation

GitHub Actions / build / Build on 18

'httpsAgent' is assigned a value but never used

Check failure on line 1137 in nodes/config/ui_base.js

View workflow job for this annotation

GitHub Actions / build / Build on 18

'Agent' is not defined
rejectUnauthorized: false
})
}
scheme = 'https://'
}
const url = scheme + (`${host}:${port}/${httpAdminRoot}flows`).replace('//', '/')
console.log('url', url)
// get request body
const dashboardId = req.params.dashboardId
Expand Down
Loading