update mattermost + traefik

This commit is contained in:
Andras Bacsai 2023-01-24 14:48:03 +01:00
parent 655a8cd60d
commit 37cea5fb61
2 changed files with 7 additions and 4 deletions

View File

@ -535,12 +535,13 @@ export async function proxyConfiguration(request: FastifyRequest<OnlyId>, 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(

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 949 B