feat: optimize JSON sync with 1 API call + raw URLs
- Replace GitHub API calls (390+) with 1 API call + raw URL downloads - Create GitHubJsonService for efficient JSON file syncing - Reduce API rate limiting issues by 99.7% - Add automatic page reload after successful sync - Update tests to use new service - Maintain same functionality with better performance Performance improvement: - Before: 390+ GitHub API calls (1 per JSON file) - After: 1 GitHub API call + 389 raw URL downloads - Raw URLs have no rate limits, making sync much more reliable
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
{
|
||||
"name": "Duplicati",
|
||||
"slug": "duplicati",
|
||||
"categories": [
|
||||
7
|
||||
],
|
||||
"date_created": "2025-02-06",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 8200,
|
||||
"documentation": "https://docs.duplicati.com/",
|
||||
"website": "https://duplicati.com/",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/duplicati.webp",
|
||||
"config_path": "",
|
||||
"description": "Duplicati is a free, open-source backup solution that offers zero-trust, fully encrypted backups for your data.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/duplicati.sh",
|
||||
"resources": {
|
||||
"cpu": 1,
|
||||
"ram": 1048,
|
||||
"hdd": 10,
|
||||
"os": "debian",
|
||||
"version": "12"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": null,
|
||||
"password": null
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Admin password and database encryption key: `cat ~/duplicati.creds`",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
"name": "Duplicati",
|
||||
"slug": "duplicati",
|
||||
"categories": [
|
||||
7
|
||||
],
|
||||
"date_created": "2025-02-06",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 8200,
|
||||
"documentation": "https://docs.duplicati.com/",
|
||||
"website": "https://duplicati.com/",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/duplicati.webp",
|
||||
"config_path": "",
|
||||
"description": "Duplicati is a free, open-source backup solution that offers zero-trust, fully encrypted backups for your data.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/duplicati.sh",
|
||||
"resources": {
|
||||
"cpu": 1,
|
||||
"ram": 1048,
|
||||
"hdd": 10,
|
||||
"os": "debian",
|
||||
"version": "12"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": null,
|
||||
"password": null
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Admin password and database encryption key: `cat ~/duplicati.creds`",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user