Skip to content

Commit

Permalink
fix: fix host rule formatting for traefik.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Jul 2, 2024
1 parent 3ff64d9 commit 45df3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(subsites)/traefik-config/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const GET: RequestHandler = async ({ fetch }) => {
for (const username of usernames) {
const routerName = `${env.TRAEFIK_CONFIG_NAMESPACE}-rtr-${username}`;
routers[routerName] = {
rule: `Host(${username}.${pubenv.PUBLIC_DOMAIN})`,
rule: `Host(\`${username}.${pubenv.PUBLIC_DOMAIN}\`)`,
service: env.TRAEFIK_CONFIG_SERVICE_NAME,
tls: {
certResolver: 'letsencrypt'
Expand Down

0 comments on commit 45df3cd

Please sign in to comment.