Skip to content

Commit 6ca2668

Browse files
authored
Merge pull request #90 from Automattic/traefik3
refactor: switch to traefik v3
2 parents 931ccfa + 809e8f9 commit 6ca2668

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/lando-proxy/lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports.getProxyRunner = (project, files) => ({
5454
*/
5555
exports.getRule = rule => {
5656
// Start with the rule we can assume
57-
const hostRegex = rule.host.replace(new RegExp('\\*', 'g'), '{wildcard:[a-z0-9-]+}');
57+
const hostRegex = rule.host.replace(new RegExp('\\*', 'g'), '[a-z0-9-]+');
5858
const rules = [`HostRegexp(\`${hostRegex}\`)`];
5959
// Add in the path prefix if we can
6060
if (rule.pathname.length > 1) rules.push(`PathPrefix(\`${rule.pathname}\`)`);

plugins/lando-proxy/services/proxy/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const getProxy = ({proxyCommand, proxyPassThru, proxyDomain, userConfRoot, versi
1010
return {
1111
services: {
1212
proxy: {
13-
image: 'ghcr.io/automattic/vip-container-images/traefik_openssl:latest',
13+
image: 'ghcr.io/automattic/vip-container-images/traefik_openssl:v3',
1414
command: proxyCommand.join(' '),
1515
environment: {
1616
LANDO_APP_PROJECT: '_lando_',

0 commit comments

Comments
 (0)