Apps are a coreapp.toml; a trusted installer makes the Core side
An app's repository now has only coreapp.toml, its Dockerfile, its code and an icon: no install scripts or compose file, so installing an app from someone else's repository can't run their code as root on a Core. core/coreapps runs on the Core (coreapp deploy puts it in /opt/coreapps). It checks the manifest, refuses Federated's app names and the Core's hostnames, picks a free address on that Core, writes the generic app format from its own templates, sets up the needs (postgres, sso) and installs through installapp. Updates keep the address, secrets and data, add settings for new needs and delete old images; dropping a need is refused. remove rebuilds Superpanel's catalog afterwards. PLAN.md: the Coreapps direction and steps, and what the Core offers apps (Superpanel's AI features, mcpserver, hermes, email, PowerDNS). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# What a Federated Core needs to know to install {{TITLE}}. coreapp-dev's
|
||||
# installer (coreapps) makes the rest from it: the container on the Core's
|
||||
# network, https://{{NAME}}.<domain>, its settings and secrets.
|
||||
|
||||
# Its id and hostname: https://{{NAME}}.<domain>
|
||||
name = "{{NAME}}"
|
||||
title = "{{TITLE}}"
|
||||
description = "{{TITLE}}, made with coreapp-dev"
|
||||
# docs = "https://..."
|
||||
|
||||
# The image, as image:version. localhost/... images only exist where
|
||||
# coreapp deploy copies them; a published app names its registry, e.g.
|
||||
# gitea.example.com/owner/{{NAME}}. Raise the version for each release.
|
||||
image = "localhost/coreapp/{{NAME}}"
|
||||
version = "0.1.0"
|
||||
|
||||
# The port the app serves HTTP on, and a path that answers when it's up
|
||||
port = 8080
|
||||
health = "/"
|
||||
|
||||
# What it needs from the Core: "postgres" (its own database), "sso"
|
||||
# (sign-in with Core accounts through Authelia)
|
||||
needs = []
|
||||
Reference in New Issue
Block a user