Skip to content

Commit

Permalink
fix: 25-5 clock Caddyfile workaround (#536)
Browse files Browse the repository at this point in the history
* fix: 25-5 clock caddyfile workaround

* fix: simplify clock subdomain exception based on review
  • Loading branch information
scissorsneedfoodtoo authored Nov 27, 2023
1 parent 255cd7a commit dc420d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/create-caddyfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ for (const serviceName in services) {
if (serviceName === 'mongo' || serviceName === 'caddy') {
continue;
}

const subdomain = serviceName === '25--5-clock' ? 'clock' : serviceName;
const target = `${serviceName}:${
services[serviceName].ports[0].split(':')[1]
}`;

caddyfile += `
${serviceName}.${process.env.DEMO_APPS_DOMAIN} {
${subdomain}.${process.env.DEMO_APPS_DOMAIN} {
reverse_proxy ${target}
}
`;
Expand Down

0 comments on commit dc420d2

Please sign in to comment.