-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: Trudesk #452
base: main
Are you sure you want to change the base?
add: Trudesk #452
Changes from 2 commits
7b278e8
a3f42e2
b8bccb2
cfa77c5
e12c68a
a2deebf
a6ef3ba
2665a02
223854c
7a11d13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
matbrgz marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. elasticsearch URL is still hardcoded! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I said in last review, I have no idea how to prooced. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { | ||
Output, | ||
randomPassword, | ||
randomString, | ||
Services, | ||
} from "~templates-utils"; | ||
import { Input } from "./meta"; | ||
|
||
export function generate(input: Input): Output { | ||
const services: Services = []; | ||
const secretkey = randomString(32); | ||
const mongoPassword = randomPassword(); | ||
|
||
services.push({ | ||
type: "app", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.appServiceName, | ||
env: [ | ||
`NODE_ENV=production`, | ||
`TRUDESK_DOCKER=true `, | ||
`TD_MONGODB_SERVER=mongodb://mongo:${mongoPassword}@$(PROJECT_NAME)_${input.databaseServiceName}:27017`, | ||
`ELATICSEARCH_URI=http://elasticsearch:9200`, | ||
].join("\n"), | ||
source: { | ||
type: "image", | ||
image: input.appServiceImage, | ||
}, | ||
domains: [ | ||
{ | ||
host: "$(EASYPANEL_DOMAIN)", | ||
port: 8118, | ||
}, | ||
], | ||
mounts: [ | ||
{ | ||
type: "volume", | ||
name: "uploads", | ||
mountPath: "/data/storage", | ||
}, | ||
{ | ||
type: "volume", | ||
name: "plugins", | ||
mountPath: "/data/storage", | ||
}, | ||
{ | ||
type: "volume", | ||
name: "backups", | ||
mountPath: "/app/storage", | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
services.push({ | ||
type: "mongo", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.databaseServiceName, | ||
password: mongoPassword, | ||
}, | ||
}); | ||
|
||
/* TODO: ADD elasticsearch */ | ||
|
||
return { services }; | ||
} |
matbrgz marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Trudesk | ||
description: Trudesk is a versatile open-source helpdesk and customer support platform designed to streamline and enhance customer service operations. With a focus on simplicity, efficiency, and collaboration, Trudesk provides businesses with a powerful toolset to manage customer inquiries, tickets, and communication seamlessly. | ||
instructions: null | ||
changeLog: | ||
- date: 2023-9-21 | ||
description: first release | ||
links: | ||
- label: Website | ||
url: https://trudesk.io/ | ||
- label: Github | ||
url: https://github.com/polonel/trudesk | ||
contributors: | ||
- name: matbrgz | ||
url: https://github.com/matbrgz | ||
schema: | ||
type: object | ||
required: | ||
- projectName | ||
- defaultLocale | ||
- appServiceName | ||
- appServiceImage | ||
- databaseServiceName | ||
- redisServiceName | ||
properties: | ||
projectName: | ||
type: string | ||
title: Project Name | ||
defaultLocale: | ||
type: string | ||
title: Default Locale | ||
default: en | ||
appServiceName: | ||
type: string | ||
title: App Service Name | ||
default: trudesk | ||
appServiceImage: | ||
type: string | ||
title: App Service Image | ||
default: polonel/trudesk:1.2.9 | ||
databaseServiceName: | ||
type: string | ||
title: Database Service Name | ||
default: trudesk-db | ||
tags: | ||
- CRM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elasticsearch URI should not be hardcoded.
Elasticsearch is NOT a template, so if you'd like to add that too, feel free to do so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How? :) IDK how to do it. Any idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you got it