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:
@@ -1,48 +1,48 @@
|
||||
{
|
||||
"name": "Discourse",
|
||||
"slug": "discourse",
|
||||
"categories": [
|
||||
23
|
||||
],
|
||||
"date_created": "2026-02-02",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 80,
|
||||
"documentation": "https://www.discourse.org/",
|
||||
"website": "https://www.discourse.org/",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/discourse.webp",
|
||||
"config_path": "/opt/discourse/.env",
|
||||
"description": "Discourse is the civilized discussion platform. Use it as a mailing list, discussion forum, or long-form chat room.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/discourse.sh",
|
||||
"resources": {
|
||||
"cpu": 4,
|
||||
"ram": 4096,
|
||||
"hdd": 20,
|
||||
"os": "Debian",
|
||||
"version": "13"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": "admin",
|
||||
"password": null
|
||||
"name": "Discourse",
|
||||
"slug": "discourse",
|
||||
"categories": [
|
||||
23
|
||||
],
|
||||
"date_created": "2026-02-02",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 80,
|
||||
"documentation": "https://www.discourse.org/",
|
||||
"website": "https://www.discourse.org/",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/discourse.webp",
|
||||
"description": "Discourse is the civilized discussion platform. Use it as a mailing list, discussion forum, or long-form chat room.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/discourse.sh",
|
||||
"config_path": "/opt/discourse/.env",
|
||||
"resources": {
|
||||
"cpu": 4,
|
||||
"ram": 4096,
|
||||
"hdd": 20,
|
||||
"os": "Debian",
|
||||
"version": "13"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": "admin",
|
||||
"password": null
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Minimum 4GB RAM and 4 CPU cores recommended for production use.",
|
||||
"type": "warning"
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Minimum 4GB RAM and 4 CPU cores recommended for production use.",
|
||||
"type": "warning"
|
||||
},
|
||||
{
|
||||
"text": "Admin credentials are saved in `/root/discourse.creds` inside the container.",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "Configure SMTP settings in the admin panel (Admin > Settings > Email) for email notifications.",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"text": "Admin credentials are saved in `/root/discourse.creds` inside the container.",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "Configure SMTP settings in the admin panel (Admin > Settings > Email) for email notifications.",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user