mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: migrate templates
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const username = "gotenberg";
|
||||
const password = "changethis";
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: generateRandomDomain(schema),
|
||||
port: 3000,
|
||||
serviceName: "gotenberg",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
`GOTENBERG_API_BASIC_AUTH_USERNAME=${username}`,
|
||||
`GOTENBERG_API_BASIC_AUTH_PASSWORD=${password}`,
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
16
blueprints/gotenberg/template.yml
Normal file
16
blueprints/gotenberg/template.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
variables:
|
||||
main_domain: ${randomDomain}
|
||||
username: gotenberg
|
||||
password: changethis
|
||||
|
||||
config:
|
||||
domains:
|
||||
- serviceName: gotenberg
|
||||
port: 3000
|
||||
host: ${main_domain}
|
||||
|
||||
env:
|
||||
- GOTENBERG_API_BASIC_AUTH_USERNAME=${username}
|
||||
- GOTENBERG_API_BASIC_AUTH_PASSWORD=${password}
|
||||
|
||||
mounts: []
|
||||
Reference in New Issue
Block a user