meilisearch

This commit is contained in:
Andras Bacsai
2022-10-19 10:29:08 +02:00
parent 92d3860240
commit 4f7d2630af
2 changed files with 53 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ export async function migrateServicesToNewTemplate() {
if (service.type === 'vscodeserver' && service.vscodeserver) await vscodeserver(service)
if (service.type === 'wordpress' && service.wordpress) await wordpress(service)
if (service.type === 'ghost' && service.ghost) await ghost(service)
if (service.type === 'meilisearch' && service.meilisearch) await meilisearch(service)
}
} catch (error) {
@@ -20,6 +21,19 @@ export async function migrateServicesToNewTemplate() {
}
}
async function meilisearch(service: any) {
const { masterKey } = service.meilisearch
const secrets = [
`MEILI_MASTER_KEY@@@${masterKey}`,
]
await migrateSecrets(secrets, service);
// Remove old service data
// await prisma.service.update({ where: { id: service.id }, data: { wordpress: { delete: true } } })
}
async function ghost(service: any) {
const { defaultEmail, defaultPassword, mariadbUser, mariadbPassword, mariadbRootUser, mariadbRootUserPassword, mariadbDatabase } = service.ghost
const { fqdn } = service