feat: Able to change service version/tag

This commit is contained in:
Andras Bacsai
2022-04-06 19:17:28 +02:00
parent 3d72167721
commit ae4942ba29
10 changed files with 193 additions and 138 deletions

View File

@@ -4,6 +4,7 @@ import * as db from '$lib/database';
import { dev } from '$app/env';
import cuid from 'cuid';
import getPort, { portNumbers } from 'get-port';
import { supportedServiceTypesAndVersions } from '$lib/components/common';
export async function letsEncrypt(domain, id = null, isCoolify = false) {
try {
@@ -160,7 +161,7 @@ export async function generateSSLCerts() {
type,
destinationDocker: { engine }
} = service;
const found = db.supportedServiceTypesAndVersions.find((a) => a.name === type);
const found = supportedServiceTypesAndVersions.find((a) => a.name === type);
if (found) {
const domain = getDomain(fqdn);
const isHttps = fqdn.startsWith('https://');