Let apps send email through the owner's own mail provider (#26)

This commit is contained in:
michael authored and GitHub committed 2026-11-22 18:07:41 -05:00
1 parent c7036c04d5
commit 7b6851c023
146 files changed
+737 -179

No files matched your search

+23
View File
@@ -2,6 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cottage.host/schema/cottage.schema.json",
"title": "Cottage listing (cottage.yml)",
"description": "Validates cottage.yml. $defs/parameter describes one entry of template.yml's x-harbor.parameters; CI checks every recipe against it.",
"type": "object",
"additionalProperties": false,
"required": ["name", "tagline", "category", "description", "upstream", "license", "images"],
@@ -25,5 +26,27 @@
},
"mobile_apps": { "type": "boolean" },
"first_visit_claims_admin": { "type": "boolean", "description": "The app's first visitor creates the admin account; the dashboard tells the owner to finish setup at once." }
},
"$defs": {
"parameter": {
"title": "Recipe parameter (one entry of x-harbor.parameters in template.yml)",
"type": "object", "additionalProperties": false,
"required": ["key", "label", "type"],
"properties": {
"key": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,62}$", "description": "Variable name; the HARBOR_ prefix is reserved." },
"label": { "type": "string", "minLength": 1, "maxLength": 60 },
"type": { "enum": ["string", "int", "bool", "choice"] },
"default": { "type": "string", "description": "Always a quoted string, e.g. \"587\"." },
"required": { "type": "boolean" },
"secret": { "type": "boolean", "description": "Shown masked in the dashboard." },
"generate": { "enum": ["random16", "random32", "hex32"] },
"choices": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^[a-z0-9_]+$" } },
"editable": { "type": "boolean", "description": "The owner may change it after the app exists." },
"group": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,31}$", "description": "Groups fields in the dashboard. Outgoing mail settings use \"email\"." },
"hint": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[^\\n\\r]*$", "description": "One line of help text shown with the field." }
},
"if": { "properties": { "type": { "const": "choice" } } },
"then": { "required": ["choices"] }
}
}
}