Skip to content
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 builders/_drupaly.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,17 @@ module.exports = {
// Check SSL setting for the proxy service
const proxyServiceSsl = options.services[options.proxyService]?.ssl;
const ssl = proxyServiceSsl !== undefined ? proxyServiceSsl : options.services.appserver?.ssl;
drushUri = ssl ? `https://${proxyUrl}` : `http://${proxyUrl}`;
const protocol = ssl ? 'https' : 'http';
// Include port if non-standard (e.g. proxy on 444 instead of 443)
const ports = _.get(options, '_app._config.proxyLastPorts');
let port = '';
if (ports) {
const activePort = ssl ? ports.https : ports.http;
if (activePort && ((ssl && activePort !== 443) || (!ssl && activePort !== 80))) {
port = `:${activePort}`;
}
}
drushUri = `${protocol}://${proxyUrl}${port}`;
}
}

Expand Down
Loading