diff --git a/README.md b/README.md index f7c41f0..a741cee 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,10 @@ Rules (CI checks them): create its admin on first visit, set `first_visit_claims_admin: true` in `cottage.yml`: Cottage then keeps the app private to its owner until they've finished setup. Its `health_path` must be a plain path other than `/`, because that path stays reachable while the app is private. + If a setting would stop the owner creating that first account (sign-ups off, invite only), + give it `setup_value` with the value that lets them in: `{ key: SIGNUPS_ALLOWED, type: bool, + default: "false", editable: true, setup_value: "true" }`. The app runs with it while it's + private, and the owner's own choice applies when they finish setup. - Outgoing mail goes through the owner's own provider (see Outgoing mail); port 25 is blocked. - A published version is never edited, not even a comment. Change anything in a recipe and bump the `-c` revision. diff --git a/apps/hedgedoc/template.yml b/apps/hedgedoc/template.yml index be9a4ee..8e26ead 100644 --- a/apps/hedgedoc/template.yml +++ b/apps/hedgedoc/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: hedgedoc name: HedgeDoc description: Collaborative Markdown editor. - version: "1.12.0-c2" + version: "1.12.0-c3" primary: { service: app, port: 3000 } health_path: /_health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } @@ -15,7 +15,7 @@ x-harbor: parameters: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: SESSION_SECRET, label: Session secret, type: string, secret: true, generate: random32 } - - { key: ALLOW_EMAIL_REGISTER, label: Allow anyone to register, type: bool, default: "true", editable: true } + - { key: ALLOW_EMAIL_REGISTER, label: Allow anyone to register, type: bool, default: "true", editable: true, setup_value: "true" } - { key: ALLOW_ANONYMOUS, label: Allow guest notes without an account, type: bool, default: "false", editable: true } services: diff --git a/apps/homebox/template.yml b/apps/homebox/template.yml index a5fd57d..75dc03c 100644 --- a/apps/homebox/template.yml +++ b/apps/homebox/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: homebox name: HomeBox description: Home inventory for everything you own. - version: "0.27.1-c3" + version: "0.27.1-c4" primary: { service: app, port: 7745 } health_path: /api/v1/status default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 10240 } @@ -15,7 +15,7 @@ x-harbor: - { key: API_KEY_PEPPER_A, label: API key secret (part 1), type: string, secret: true, generate: hex32 } - { key: API_KEY_PEPPER_B, label: API key secret (part 2), type: string, secret: true, generate: hex32 } # HomeBox can't create its first account with registration off, so it starts on. - - { key: SIGNUPS_ALLOWED, label: Allow anyone to sign up, type: bool, default: "true", editable: true } + - { key: SIGNUPS_ALLOWED, label: Allow anyone to sign up, type: bool, default: "true", editable: true, setup_value: "true" } - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587: HomeBox sends with STARTTLS only, so port 465 won't work." } - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } diff --git a/apps/kan/template.yml b/apps/kan/template.yml index c1684d0..3551601 100644 --- a/apps/kan/template.yml +++ b/apps/kan/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: kan name: Kan description: Open-source kanban boards. - version: "0.7.0-c2" + version: "0.7.0-c3" primary: { service: app, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } @@ -14,7 +14,7 @@ x-harbor: parameters: - { key: BETTER_AUTH_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - - { key: DISABLE_SIGN_UP, label: Close new sign-ups, type: bool, default: "false", editable: true } + - { key: DISABLE_SIGN_UP, label: Close new sign-ups, type: bool, default: "false", editable: true, setup_value: "false" } - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } diff --git a/apps/karakeep/template.yml b/apps/karakeep/template.yml index 328a7a6..cb4723c 100644 --- a/apps/karakeep/template.yml +++ b/apps/karakeep/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: karakeep name: Karakeep description: Bookmark everything, with search and optional AI tagging. - version: "0.35.0-c2" + version: "0.35.0-c3" primary: { service: web, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } @@ -16,7 +16,7 @@ x-harbor: parameters: - { key: NEXTAUTH_SECRET, label: Session secret, type: string, secret: true, generate: random32 } - { key: MEILI_MASTER_KEY, label: Search index key, type: string, secret: true, generate: random32 } - - { key: DISABLE_SIGNUPS, label: Turn off public sign-up, type: bool, default: "false", editable: true } + - { key: DISABLE_SIGNUPS, label: Turn off public sign-up, type: bool, default: "false", editable: true, setup_value: "false" } - { key: OPENAI_API_KEY, label: OpenAI API key for AI tagging (optional), type: string, secret: true, default: "", editable: true } - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } diff --git a/apps/linkwarden/template.yml b/apps/linkwarden/template.yml index 830ab15..3459bb3 100644 --- a/apps/linkwarden/template.yml +++ b/apps/linkwarden/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: linkwarden name: Linkwarden description: Bookmarks with full-page archives. - version: "2.17.0-c2" + version: "2.17.0-c3" primary: { service: app, port: 3000 } health_path: /api/v1/config default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } @@ -16,7 +16,7 @@ x-harbor: parameters: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: NEXTAUTH_SECRET, label: Session secret, type: string, secret: true, generate: random32 } - - { key: DISABLE_REGISTRATION, label: Turn off public sign-up, type: bool, default: "false", editable: true } + - { key: DISABLE_REGISTRATION, label: Turn off public sign-up, type: bool, default: "false", editable: true, setup_value: "false" } services: app: diff --git a/apps/opengym/template.yml b/apps/opengym/template.yml index 9ed4ab9..514d863 100644 --- a/apps/opengym/template.yml +++ b/apps/opengym/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: opengym name: openGym description: Workout and body-weight tracker. - version: "1.4.5-c1" + version: "1.4.5-c2" primary: { service: web, port: 8080 } health_path: /api/health default_resources: { cpu_millis: 500, memory_mb: 384, storage_mb: 5120 } @@ -12,7 +12,7 @@ x-harbor: volumes: data: { uid: 1000, gid: 1000, mode: "0750" } parameters: - - { key: INVITE_ONLY, label: Require an invite code to create a profile, type: bool, default: "false", editable: true } + - { key: INVITE_ONLY, label: Require an invite code to create a profile, type: bool, default: "false", editable: true, setup_value: "false" } - { key: PASSWORD_LOGIN, label: Allow sign-in with a password as well as passkeys, type: bool, default: "true", editable: true } services: diff --git a/apps/vikunja/template.yml b/apps/vikunja/template.yml index f8fd7fe..d2f249d 100644 --- a/apps/vikunja/template.yml +++ b/apps/vikunja/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: vikunja name: Vikunja description: Self-hosted to-do lists and project boards. - version: "2.8.0-c2" + version: "2.8.0-c3" primary: { service: app, port: 3456 } health_path: /health default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } @@ -13,7 +13,7 @@ x-harbor: files: { uid: 1000, gid: 1000, mode: "0750" } parameters: - { key: SERVICE_SECRET, label: Token signing secret, type: string, secret: true, generate: random32 } - - { key: ENABLE_REGISTRATION, label: Allow anyone to sign up, type: bool, default: "true", editable: true } + - { key: ENABLE_REGISTRATION, label: Allow anyone to sign up, type: bool, default: "true", editable: true, setup_value: "true" } - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } diff --git a/schema/cottage.schema.json b/schema/cottage.schema.json index 6959914..169e858 100644 --- a/schema/cottage.schema.json +++ b/schema/cottage.schema.json @@ -43,7 +43,8 @@ "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." } + "hint": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[^\\n\\r]*$", "description": "One line of help text shown with the field." }, + "setup_value": { "type": "string", "minLength": 1, "description": "For apps with first_visit_claims_admin: the value the app runs with while Cottage keeps it to its owner during setup (keep sign-ups open, say). The owner's own choice applies when they finish setup. Editable, non-secret settings only." } }, "if": { "properties": { "type": { "const": "choice" } } }, "then": { "required": ["choices"] }