mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 12:33:06 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31d7e7e806 | ||
|
|
e740788d6c | ||
|
|
928d53e532 |
@@ -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')
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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`;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user