Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Point the agentsite template at its serverkit.yaml, drop false env requirements

Juan Denisced975aa2bb8
diff --git a/backend/templates/agentsite.yaml b/backend/templates/agentsite.yaml
index 8e75b2f6..2332f524 100644
--- a/backend/templates/agentsite.yaml
+++ b/backend/templates/agentsite.yaml
@@ -24,30 +24,33 @@ repo:
port: 6391
dockerfile_path: Dockerfile
healthcheck_path: /api/health
- strategy: docker_compose
+ strategy: serverkit
manifest_files:
+ - serverkit.yaml
- docker-compose.yml
- render.yaml
- railway.json
- app.json
+ # AgentSite is model-agnostic and needs ONE provider key, not all six —
+ # every key is optional so the wizard does not star them all as required.
env:
- key: OPENAI_API_KEY
- required: true
+ required: false
secret: true
- key: CLAUDE_API_KEY
- required: true
+ required: false
secret: true
- key: GOOGLE_API_KEY
- required: true
+ required: false
secret: true
- key: GROQ_API_KEY
- required: true
+ required: false
secret: true
- key: GROK_API_KEY
- required: true
+ required: false
secret: true
- key: OPENROUTER_API_KEY
- required: true
+ required: false
secret: true
requirements:
diff --git a/backend/tests/test_template_repo_kind.py b/backend/tests/test_template_repo_kind.py
index 0de8558f..114cbaf2 100644
--- a/backend/tests/test_template_repo_kind.py
+++ b/backend/tests/test_template_repo_kind.py
@@ -76,14 +76,15 @@ def test_agentsite_in_list_with_repo_summary():
def test_build_template_hints_shape():
tmpl = TemplateService.get_template('agentsite')['template']
hints = TemplateService.build_template_hints(tmpl)
- assert hints['strategy'] == 'docker_compose'
+ assert hints['strategy'] == 'serverkit'
assert hints['recommended']['app_type'] == 'docker'
assert hints['recommended']['port'] == 6391
keys = {e['key'] for e in hints['env']}
assert 'OPENAI_API_KEY' in keys
# Secret env values are never leaked in hints.
assert all(e['value'] is None for e in hints['env'] if e['secret'])
- assert {m['file'] for m in hints['manifests']} >= {'docker-compose.yml', 'render.yaml'}
+ assert {m['file'] for m in hints['manifests']} >= {
+ 'serverkit.yaml', 'docker-compose.yml', 'render.yaml'}
# --------------------------------------------------------------------------- #