diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index 7c54b5856..2667c54ca 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -535,12 +535,13 @@ export async function proxyConfiguration(request: FastifyRequest, remote if (!found) { continue; } - found = await parseAndFindServiceTemplates(service, null, true); + found = JSON.parse(JSON.stringify(found).replaceAll('$$id', id)); for (const oneService of Object.keys(found.services)) { const isDomainAndProxyConfiguration = - found?.services[oneService]?.proxy?.filter((p) => p.domain && p.port) ?? []; + found?.services[oneService]?.proxy?.filter((p) => p.port) ?? []; if (isDomainAndProxyConfiguration.length > 0) { - const { proxy } = found.services[oneService]; + const template: any = await parseAndFindServiceTemplates(service, null, true); + const { proxy } = template.services[oneService] || found.services[oneService]; for (let configuration of proxy) { if (configuration.domain) { const setting = serviceSetting.find( diff --git a/apps/ui/static/icons/mattermost.svg b/apps/ui/static/icons/mattermost.svg index b6c526ac6..e71900c57 100644 --- a/apps/ui/static/icons/mattermost.svg +++ b/apps/ui/static/icons/mattermost.svg @@ -1 +1,3 @@ - \ No newline at end of file + + +