fix: code review changes

This commit is contained in:
Radu Ciocan
2024-07-06 20:30:23 +01:00
parent e49b190c32
commit aa347abfcd
3 changed files with 7 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
services: services:
doublezero: doublezero:
restart: always restart: always
image: liltechnomancer/double-zero:latest image: liltechnomancer/double-zero:0.2.1
ports: ports:
- 4000:4000 - ${DOUBLEZERO_PORT}
networks: networks:
- dokploy-network - dokploy-network
volumes: volumes:

View File

@@ -3,16 +3,19 @@ import {
generateRandomDomain, generateRandomDomain,
type Template, type Template,
type Schema, type Schema,
generateBase64,
} from "../utils"; } from "../utils";
export function generate(schema: Schema): Template { export function generate(schema: Schema): Template {
const mainServiceHash = generateHash(schema.projectName); const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema); const randomDomain = generateRandomDomain(schema);
const secretKeyBase = generateBase64(64);
const envs = [ const envs = [
`DOUBLEZERO_HOST=${randomDomain}`, `DOUBLEZERO_HOST=${randomDomain}`,
"DOUBLEZERO_PORT=4000", "DOUBLEZERO_PORT=4000",
`HASH=${mainServiceHash}`, `HASH=${mainServiceHash}`,
"SECRET_KEY_BASE=", `SECRET_KEY_BASE=${secretKeyBase}`,
"AWS_ACCESS_KEY_ID=", "AWS_ACCESS_KEY_ID=",
"AWS_SECRET_ACCESS_KEY=", "AWS_SECRET_ACCESS_KEY=",
"AWS_REGION=", "AWS_REGION=",

View File

@@ -335,7 +335,7 @@ export const templates: TemplateData[] = [
{ {
id: 'doublezero', id: 'doublezero',
name: 'Double Zero', name: 'Double Zero',
version: 'v0.0', version: 'v0.2.1',
description: '00 is a self hostable SES dashboard for sending and monitoring emails with AWS', description: '00 is a self hostable SES dashboard for sending and monitoring emails with AWS',
logo: 'doublezero.svg', logo: 'doublezero.svg',
links: { links: {