Skip to content

Commit

Permalink
Merge pull request #90 from Automattic/traefik3
Browse files Browse the repository at this point in the history
refactor: switch to traefik v3
  • Loading branch information
sjinks authored Nov 11, 2024
2 parents 931ccfa + 809e8f9 commit 6ca2668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/lando-proxy/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports.getProxyRunner = (project, files) => ({
*/
exports.getRule = rule => {
// Start with the rule we can assume
const hostRegex = rule.host.replace(new RegExp('\\*', 'g'), '{wildcard:[a-z0-9-]+}');
const hostRegex = rule.host.replace(new RegExp('\\*', 'g'), '[a-z0-9-]+');
const rules = [`HostRegexp(\`${hostRegex}\`)`];
// Add in the path prefix if we can
if (rule.pathname.length > 1) rules.push(`PathPrefix(\`${rule.pathname}\`)`);
Expand Down
2 changes: 1 addition & 1 deletion plugins/lando-proxy/services/proxy/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const getProxy = ({proxyCommand, proxyPassThru, proxyDomain, userConfRoot, versi
return {
services: {
proxy: {
image: 'ghcr.io/automattic/vip-container-images/traefik_openssl:latest',
image: 'ghcr.io/automattic/vip-container-images/traefik_openssl:v3',
command: proxyCommand.join(' '),
environment: {
LANDO_APP_PROJECT: '_lando_',
Expand Down

0 comments on commit 6ca2668

Please sign in to comment.