Keep sign-ups open until the owner finishes setup (#28)
This commit is contained in:
1 parent
f3157b71f3
commit
a66efa11e0
9 files changed
+20
-15
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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." }
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
Reference in new issue
Block a user