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

lando/lando#3744: Check to make sure default url isn't being overridden in proxy settings. #136

Merged
merged 1 commit into from
Oct 22, 2024
Merged
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
8 changes: 6 additions & 2 deletions builders/_drupaly.js
Original file line number Diff line number Diff line change
@@ -189,8 +189,12 @@ const getDbTooling = database => {
const getProxy = (options, proxyService = 'appserver') => {
// get any intial proxy stuff for proxyService
const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
// add
urls.push(`${options.app}.${options._app._config.domain}`);

// if urls doesn't have the lando generated domain, add it in
if (!_.find(urls, {hostname: `${options.app}.${options._app._config.domain}`})) {
urls.push({hostname: `${options.app}.${options._app._config.domain}`});
}

// return
return {[proxyService]: _.uniq(_.compact(urls))};
};