Skip to content

Commit 1555b3b

Browse files
committed
feat(proxy): Add option to not strip hostname prefixes
1 parent e47222e commit 1555b3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/proxy/lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ exports.parseRoutes = (service, urls = [], sslReady, labels = {}) => {
167167
rule.middlewares.push({name: 'lando', key: 'headers.customrequestheaders.X-Lando', value: 'on'});
168168

169169
// Add in any path stripping middleware we need it
170-
if (rule.pathname.length > 1) {
170+
if (rule.pathname.length > 1 && _.get(rule, 'stripPrefix', true)) {
171171
rule.middlewares.push({name: 'stripprefix', key: 'stripprefix.prefixes', value: rule.pathname});
172172
};
173173

0 commit comments

Comments
 (0)