mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-15 16:35:17 +00:00
feat(templates): add JWT generation and expand template variable processing
- Implement generateJwt function for creating JWT tokens - Add support for 'jwt' and 'jwt:length' template variables - Introduce new base64 and password generation shortcuts - Enhance template variable processing with additional utility functions
This commit is contained in:
@@ -63,6 +63,10 @@ export function generateBase64(length: number): string {
|
||||
.substring(0, length);
|
||||
}
|
||||
|
||||
export function generateJwt(length = 256): string {
|
||||
return randomBytes(length).toString("hex");
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads a template's docker-compose.yml file
|
||||
* First tries to fetch from GitHub, falls back to local cache if fetch fails
|
||||
|
||||
Reference in New Issue
Block a user