refactor(templates): remove legacy template files and update project structure

- Delete all template-related files in `apps/dokploy/templates`
- Remove template image files from `apps/dokploy/public/templates`
- Update server-side template processing with new implementation
- Clean up unused configuration and utility files
This commit is contained in:
Mauricio Siu
2025-03-09 21:09:05 -06:00
parent 152b2e1a5d
commit d4a98eb85e
348 changed files with 11 additions and 14169 deletions

View File

@@ -1,38 +0,0 @@
/**
* Configuration for the GitHub template repository
*/
export const templateConfig = {
/**
* GitHub repository owner
* @default "dokploy"
*/
owner: process.env.TEMPLATE_REPO_OWNER || "dokploy",
/**
* GitHub repository name
* @default "templates"
*/
repo: process.env.TEMPLATE_REPO_NAME || "templates",
/**
* GitHub repository branch
* @default "main"
*/
branch: process.env.TEMPLATE_REPO_BRANCH || "main",
/**
* Cache duration in milliseconds
* How long to cache templates before checking for updates
* @default 3600000 (1 hour)
*/
cacheDuration: Number.parseInt(
process.env.TEMPLATE_CACHE_DURATION || "3600000",
10,
),
/**
* GitHub API token (optional)
* Used for higher rate limits
*/
token: process.env.GITHUB_TOKEN,
};

View File

@@ -1,44 +0,0 @@
metadata:
id: plausible
name: Plausible Analytics
description: Privacy-focused Google Analytics alternative
tags:
- analytics
- privacy
- statistics
variables:
db_password: ${password:32}
admin_password: ${password:16}
secret_key: ${base64:64}
main_domain: ${randomDomain}
config:
domains:
- serviceName: plausible
port: 8000
path: /
host: plausible-${main_domain}
- serviceName: admin
port: 8001
path: /admin
host: admin-${main_domain}
env:
ADMIN_USER_EMAIL: admin@example.com
ADMIN_USER_NAME: admin
ADMIN_USER_PWD: ${admin_password}
SECRET_KEY_BASE: ${secret_key}
DB: plausible
DB_USER: plausible
DB_PASSWORD: ${db_password}
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: ${password:32}
DOMAIN: ${domain:plausible}
ADMIN_DOMAIN: ${domain:admin}
mounts:
- filePath: nginx.conf
content: |
server_name ${domain:plausible};
# resto de la configuración...

View File

@@ -1,42 +0,0 @@
{
"metadata": {
"id": "plausible",
"name": "Plausible Analytics",
"version": "latest",
"description": "Privacy-focused Google Analytics alternative",
"logo": "plausible.svg",
"links": {
"website": "https://plausible.io",
"docs": "https://plausible.io/docs",
"github": "https://github.com/plausible/analytics"
},
"tags": ["analytics", "privacy", "statistics"]
},
"config": {
"domains": {
"plausible": {
"port": 8000,
"path": "/",
"serviceName": "plausible",
"host": "plausible.com"
}
},
"env": {
"ADMIN_USER_EMAIL": "admin@example.com",
"ADMIN_USER_NAME": "admin",
"ADMIN_USER_PWD": "plausible",
"SECRET_KEY_BASE": "plausible",
"DB": "plausible",
"DB_USER": "plausible",
"DB_PASSWORD": "plausible",
"CLICKHOUSE_USER": "default",
"CLICKHOUSE_PASSWORD": "default"
},
"mounts": [
{
"filePath": "custom.css",
"content": "/* Add your custom CSS here */"
}
]
}
}