refactor: move config_path from root into install_methods

Migrated all 80 app JSON files to place config_path inside each
install_methods object instead of at the root level. This allows
different install methods (e.g. Debian vs Alpine) to have distinct
config paths.

Also updated AGENTS.md JSON structure example to reflect the change.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-14 14:51:01 +02:00
parent 935f9d9d3d
commit 36a4635772
81 changed files with 2621 additions and 2611 deletions

View File

@@ -1,44 +1,44 @@
{
"name": "Anchor",
"slug": "anchor",
"categories": [
12
],
"date_created": "2026-04-02",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 3000,
"documentation": "https://github.com/ZhFahim/anchor#readme",
"website": "https://github.com/ZhFahim/anchor",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/anchor.webp",
"config_path": "/opt/anchor/.env",
"description": "Anchor is an offline-first, self-hosted note-taking application with rich text editing, real-time sync across devices, note sharing, tags, attachments, OIDC authentication, and admin panel.",
"install_methods": [
{
"type": "default",
"script": "ct/anchor.sh",
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": 10,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": null,
"password": null
"name": "Anchor",
"slug": "anchor",
"categories": [
12
],
"date_created": "2026-04-02",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 3000,
"documentation": "https://github.com/ZhFahim/anchor#readme",
"website": "https://github.com/ZhFahim/anchor",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/anchor.webp",
"description": "Anchor is an offline-first, self-hosted note-taking application with rich text editing, real-time sync across devices, note sharing, tags, attachments, OIDC authentication, and admin panel.",
"install_methods": [
{
"type": "default",
"script": "ct/anchor.sh",
"config_path": "/opt/anchor/.env",
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": 10,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "The first user to register becomes the admin.",
"type": "info"
},
"notes": [
{
"text": "The first user to register becomes the admin.",
"type": "info"
},
{
"text": "OIDC can be configured via environment variables in `/opt/anchor/.env` or the admin panel.",
"type": "info"
}
]
}
{
"text": "OIDC can be configured via environment variables in `/opt/anchor/.env` or the admin panel.",
"type": "info"
}
]
}