feat: Check ssl for new apps/services first

This commit is contained in:
Andras Bacsai 2022-03-11 21:28:27 +01:00
parent 3de2ea1523
commit 7c273a3a48

View File

@ -99,7 +99,8 @@ export async function letsEncrypt(domain, id = null, isCoolify = false) {
export async function generateSSLCerts() {
const ssls = [];
const applications = await db.prisma.application.findMany({
include: { destinationDocker: true, settings: true }
include: { destinationDocker: true, settings: true },
orderBy: { createdAt: 'desc' }
});
for (const application of applications) {
const {
@ -139,7 +140,8 @@ export async function generateSSLCerts() {
plausibleAnalytics: true,
vscodeserver: true,
wordpress: true
}
},
orderBy: { createdAt: 'desc' }
});
for (const service of services) {