Compare commits

...

3 Commits

Author SHA1 Message Date
Andras Bacsai
31d7e7e806 fix: forgot that the version bump changed 😅 2022-07-06 13:46:00 +02:00
Andras Bacsai
e740788d6c chore: version++ 2022-07-06 11:49:53 +02:00
Andras Bacsai
928d53e532 fix: Seeding 2022-07-06 11:49:07 +02:00
4 changed files with 18 additions and 5 deletions

View File

@@ -23,7 +23,8 @@ async function main() {
await prisma.setting.create({
data: {
isRegistrationEnabled: true,
isTraefikUsed: true,
proxyPassword: encrypt(generatePassword()),
proxyUser: cuid()
}
});
} else {
@@ -72,4 +73,16 @@ main()
})
.finally(async () => {
await prisma.$disconnect();
});
});
const encrypt = (text) => {
if (text) {
const iv = crypto.randomBytes(16);
const cipher = crypto.createCipheriv(algorithm, process.env['COOLIFY_SECRET_KEY'], iv);
const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);
return JSON.stringify({
iv: iv.toString('hex'),
content: encrypted.toString('hex')
});
}
};

View File

@@ -23,7 +23,7 @@ const customConfig: Config = {
length: 3
};
export const isDev = process.env.NODE_ENV === 'development';
export const version = '3.0.0';
export const version = '3.0.1';
export const defaultProxyImage = `coolify-haproxy-alpine:latest`;
export const defaultProxyImageTcp = `coolify-haproxy-tcp-alpine:latest`;

View File

@@ -18,7 +18,7 @@ interface AppSession {
}
export const loginEmail: Writable<string | undefined> = writable()
export const appSession: Writable<AppSession> = writable({
version: '3.0.0',
version: '3.0.1',
userId: null,
teamId: null,
permission: 'read',

View File

@@ -1,6 +1,6 @@
{
"name": "coolify",
"version": "3.0.0",
"version": "3.0.1",
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
"license": "AGPL-3.0",
"scripts": {