forked from Dokploy/dokploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Dokploy#713 from Dokploy/fix/build-i18n
refactor(dokploy): add missing next-18next to dockerfile
- Loading branch information
Showing
20 changed files
with
289 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
import { | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generateRandomDomain, | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generateRandomDomain, | ||
} from "../utils"; | ||
|
||
export function generate(schema: Schema): Template { | ||
const mainDomain = generateRandomDomain(schema); | ||
|
||
const apiKey = Array.from({length: 32}, () => | ||
Math.floor(Math.random() * 16).toString(16)).join(''); | ||
const encryptionKey = Array.from({length: 32}, () => | ||
Math.floor(Math.random() * 16).toString(16)).join(''); | ||
const jwtSecret = Array.from({length: 32}, () => | ||
Math.floor(Math.random() * 16).toString(16)).join(''); | ||
const postgresPassword = Array.from({length: 32}, () => | ||
Math.floor(Math.random() * 16).toString(16)).join(''); | ||
const mainDomain = generateRandomDomain(schema); | ||
|
||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 80, | ||
serviceName: "activepieces", | ||
}, | ||
]; | ||
const apiKey = Array.from({ length: 32 }, () => | ||
Math.floor(Math.random() * 16).toString(16), | ||
).join(""); | ||
const encryptionKey = Array.from({ length: 32 }, () => | ||
Math.floor(Math.random() * 16).toString(16), | ||
).join(""); | ||
const jwtSecret = Array.from({ length: 32 }, () => | ||
Math.floor(Math.random() * 16).toString(16), | ||
).join(""); | ||
const postgresPassword = Array.from({ length: 32 }, () => | ||
Math.floor(Math.random() * 16).toString(16), | ||
).join(""); | ||
|
||
const envs = [ | ||
`AP_HOST=${mainDomain}`, | ||
`AP_API_KEY=${apiKey}`, | ||
`AP_ENCRYPTION_KEY=${encryptionKey}`, | ||
`AP_JWT_SECRET=${jwtSecret}`, | ||
`AP_POSTGRES_PASSWORD=${postgresPassword}`, | ||
]; | ||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 80, | ||
serviceName: "activepieces", | ||
}, | ||
]; | ||
|
||
return { | ||
domains, | ||
envs, | ||
}; | ||
} | ||
const envs = [ | ||
`AP_HOST=${mainDomain}`, | ||
`AP_API_KEY=${apiKey}`, | ||
`AP_ENCRYPTION_KEY=${encryptionKey}`, | ||
`AP_JWT_SECRET=${jwtSecret}`, | ||
`AP_POSTGRES_PASSWORD=${postgresPassword}`, | ||
]; | ||
|
||
return { | ||
domains, | ||
envs, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,47 @@ | ||
import { | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generatePassword, | ||
generateRandomDomain, | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generatePassword, | ||
generateRandomDomain, | ||
} from "../utils"; | ||
|
||
export function generate(schema: Schema): Template { | ||
const mainDomain = generateRandomDomain(schema); | ||
const mysqlPassword = generatePassword(); | ||
const mysqlRootPassword = generatePassword(); | ||
const mysqlUser = "tickets"; | ||
const mysqlDatabase = "tickets"; | ||
|
||
// Generate encryption key in the format they use | ||
const encryptionKey = Array.from({length: 48}, () => | ||
Math.floor(Math.random() * 16).toString(16)).join(''); | ||
const mainDomain = generateRandomDomain(schema); | ||
const mysqlPassword = generatePassword(); | ||
const mysqlRootPassword = generatePassword(); | ||
const mysqlUser = "tickets"; | ||
const mysqlDatabase = "tickets"; | ||
|
||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 8169, | ||
serviceName: "bot", | ||
}, | ||
]; | ||
// Generate encryption key in the format they use | ||
const encryptionKey = Array.from({ length: 48 }, () => | ||
Math.floor(Math.random() * 16).toString(16), | ||
).join(""); | ||
|
||
const envs = [ | ||
`TICKETS_HOST=${mainDomain}`, | ||
`MYSQL_DATABASE=${mysqlDatabase}`, | ||
`MYSQL_PASSWORD=${mysqlPassword}`, | ||
`MYSQL_ROOT_PASSWORD=${mysqlRootPassword}`, | ||
`MYSQL_USER=${mysqlUser}`, | ||
`ENCRYPTION_KEY=${encryptionKey}`, | ||
// These need to be set by the user through the UI | ||
`# Follow the guide at: https://discordtickets.app/self-hosting/installation/docker/#creating-the-discord-application`, | ||
`DISCORD_SECRET=`, | ||
`DISCORD_TOKEN=`, | ||
`SUPER_USERS=YOUR_DISCORD_USER_ID`, // Default super user | ||
]; | ||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 8169, | ||
serviceName: "bot", | ||
}, | ||
]; | ||
|
||
return { | ||
domains, | ||
envs, | ||
}; | ||
} | ||
const envs = [ | ||
`TICKETS_HOST=${mainDomain}`, | ||
`MYSQL_DATABASE=${mysqlDatabase}`, | ||
`MYSQL_PASSWORD=${mysqlPassword}`, | ||
`MYSQL_ROOT_PASSWORD=${mysqlRootPassword}`, | ||
`MYSQL_USER=${mysqlUser}`, | ||
`ENCRYPTION_KEY=${encryptionKey}`, | ||
// These need to be set by the user through the UI | ||
"# Follow the guide at: https://discordtickets.app/self-hosting/installation/docker/#creating-the-discord-application", | ||
"DISCORD_SECRET=", | ||
"DISCORD_TOKEN=", | ||
"SUPER_USERS=YOUR_DISCORD_USER_ID", // Default super user | ||
]; | ||
|
||
return { | ||
domains, | ||
envs, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
import { | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generatePassword, | ||
generateRandomDomain, | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generatePassword, | ||
generateRandomDomain, | ||
} from "../utils"; | ||
|
||
export function generate(schema: Schema): Template { | ||
const mainDomain = generateRandomDomain(schema); | ||
const dbPassword = generatePassword(); | ||
const dbUsername = "invoiceshelf"; | ||
const dbDatabase = "invoiceshelf"; | ||
const mainDomain = generateRandomDomain(schema); | ||
const dbPassword = generatePassword(); | ||
const dbUsername = "invoiceshelf"; | ||
const dbDatabase = "invoiceshelf"; | ||
|
||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 80, | ||
serviceName: "invoiceshelf", | ||
}, | ||
]; | ||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 80, | ||
serviceName: "invoiceshelf", | ||
}, | ||
]; | ||
|
||
const envs = [ | ||
`INVOICESHELF_HOST=${mainDomain}`, | ||
`DB_PASSWORD=${dbPassword}`, | ||
`DB_USERNAME=${dbUsername}`, | ||
`DB_DATABASE=${dbDatabase}`, | ||
]; | ||
const envs = [ | ||
`INVOICESHELF_HOST=${mainDomain}`, | ||
`DB_PASSWORD=${dbPassword}`, | ||
`DB_USERNAME=${dbUsername}`, | ||
`DB_DATABASE=${dbDatabase}`, | ||
]; | ||
|
||
return { | ||
domains, | ||
envs, | ||
}; | ||
} | ||
return { | ||
domains, | ||
envs, | ||
}; | ||
} |
Oops, something went wrong.