From 97fbe04c5236be4bbc3aa6f06e11a6d6acf25664 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Sat, 21 Feb 2026 15:42:57 -0600 Subject: [PATCH 1/2] fix: include non-standard proxy port in drush_uri --- builders/_drupaly.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/builders/_drupaly.js b/builders/_drupaly.js index cced1bc..9a61319 100644 --- a/builders/_drupaly.js +++ b/builders/_drupaly.js @@ -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}`; } } From c425a7668e36361fcb8a3accab44e3b703e0328f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 21 Feb 2026 21:49:47 +0000 Subject: [PATCH 2/2] Fix port comparison to handle numeric values from proxy cache Applied via @cursor push command --- builders/_drupaly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builders/_drupaly.js b/builders/_drupaly.js index 9a61319..a6a6fca 100644 --- a/builders/_drupaly.js +++ b/builders/_drupaly.js @@ -305,7 +305,7 @@ module.exports = { let port = ''; if (ports) { const activePort = ssl ? ports.https : ports.http; - if (activePort && ((ssl && activePort !== '443') || (!ssl && activePort !== '80'))) { + if (activePort && ((ssl && activePort !== 443) || (!ssl && activePort !== 80))) { port = `:${activePort}`; } }