mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: lint
This commit is contained in:
@@ -1,30 +1,30 @@
|
|||||||
import {
|
import {
|
||||||
type DomainSchema,
|
type DomainSchema,
|
||||||
type Schema,
|
type Schema,
|
||||||
type Template,
|
type Template,
|
||||||
generateRandomDomain,
|
generateRandomDomain,
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
|
|
||||||
export function generate(schema: Schema): Template {
|
export function generate(schema: Schema): Template {
|
||||||
const randomDomain = generateRandomDomain(schema);
|
const randomDomain = generateRandomDomain(schema);
|
||||||
|
|
||||||
const domains: DomainSchema[] = [
|
const domains: DomainSchema[] = [
|
||||||
{
|
{
|
||||||
host: randomDomain,
|
host: randomDomain,
|
||||||
port: 9000,
|
port: 9000,
|
||||||
serviceName: "app",
|
serviceName: "app",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
"# visit the page to setup your super admin user",
|
"# visit the page to setup your super admin user",
|
||||||
"# check config.toml in Advanced / Volumes for more options",
|
"# check config.toml in Advanced / Volumes for more options",
|
||||||
];
|
];
|
||||||
|
|
||||||
const mounts: Template["mounts"] = [
|
const mounts: Template["mounts"] = [
|
||||||
{
|
{
|
||||||
filePath: "config.toml",
|
filePath: "config.toml",
|
||||||
content: `[app]
|
content: `[app]
|
||||||
address = "0.0.0.0:9000"
|
address = "0.0.0.0:9000"
|
||||||
|
|
||||||
[db]
|
[db]
|
||||||
@@ -41,12 +41,12 @@ max_lifetime = "300s"
|
|||||||
|
|
||||||
params = ""
|
params = ""
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
envs,
|
envs,
|
||||||
mounts,
|
mounts,
|
||||||
domains,
|
domains,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user