fix: check compose domains in general
This commit is contained in:
parent
7a053ce697
commit
f734154da8
@ -264,7 +264,9 @@ export async function isDomainConfigured({
|
|||||||
where: {
|
where: {
|
||||||
OR: [
|
OR: [
|
||||||
{ fqdn: { endsWith: `//${nakedDomain}` } },
|
{ fqdn: { endsWith: `//${nakedDomain}` } },
|
||||||
{ fqdn: { endsWith: `//www.${nakedDomain}` } }
|
{ fqdn: { endsWith: `//www.${nakedDomain}` } },
|
||||||
|
{ dockerComposeConfiguration: { contains: `//${nakedDomain}` } },
|
||||||
|
{ dockerComposeConfiguration: { contains: `//www.${nakedDomain}` } }
|
||||||
],
|
],
|
||||||
id: { not: id },
|
id: { not: id },
|
||||||
destinationDocker: {
|
destinationDocker: {
|
||||||
|
@ -243,13 +243,24 @@
|
|||||||
nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');
|
nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');
|
||||||
if (application.deploymentType)
|
if (application.deploymentType)
|
||||||
application.deploymentType = application.deploymentType.toLowerCase();
|
application.deploymentType = application.deploymentType.toLowerCase();
|
||||||
!isBot &&
|
if (!isBot) {
|
||||||
(await post(`/applications/${id}/check`, {
|
await post(`/applications/${id}/check`, {
|
||||||
fqdn: application.fqdn,
|
fqdn: application.fqdn,
|
||||||
forceSave,
|
forceSave,
|
||||||
dualCerts,
|
dualCerts,
|
||||||
exposePort: application.exposePort
|
exposePort: application.exposePort
|
||||||
}));
|
});
|
||||||
|
for (const service of dockerComposeServices) {
|
||||||
|
if (dockerComposeConfiguration[service.name].fqdn) {
|
||||||
|
await post(`/applications/${id}/check`, {
|
||||||
|
fqdn: dockerComposeConfiguration[service.name].fqdn,
|
||||||
|
forceSave,
|
||||||
|
dualCerts,
|
||||||
|
exposePort: application.exposePort
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
await post(`/applications/${id}`, {
|
await post(`/applications/${id}`, {
|
||||||
...application,
|
...application,
|
||||||
baseDatabaseBranch,
|
baseDatabaseBranch,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user