mirror of
https://github.com/Such-Software/smirk-backend-core.git
synced 2026-10-17 07:21:32 +02:00
feat(feed): operator-configurable public feed advertised via /capabilities
A read-only web feed (feed.<domain>) is a backend-operator knob: FEED_ENABLED plus curation switches (show owner / show premium members / a featured npub allowlist / extra relays) surface in /capabilities.feed so the feed page adapts per instance. Reads from the relay, so validate() fail-closes FEED_ENABLED without RELAY_ENABLED. Off by default; all public display config, no secrets.
This commit is contained in:
@@ -168,6 +168,18 @@ PREMIUM_CURRENCY=USD
|
||||
# Comma-separated plans, each `id:days:amount` (a built-in tiered discount).
|
||||
PREMIUM_PLANS=quarter:90:5,halfyear:182:9,year:365:15
|
||||
|
||||
# ── Public curated feed (optional; powers a read-only web feed like feed.<domain>) ──
|
||||
# Reads FROM the relay, so it needs RELAY_ENABLED. All public display config —
|
||||
# what the feed shows. Off by default; advertised via /capabilities.feed when on.
|
||||
FEED_ENABLED=false
|
||||
FEED_SHOW_OWNER=true
|
||||
FEED_SHOW_PREMIUM=true
|
||||
# Operator npub (hex or npub1…) for "owner" posts + display; empty if none.
|
||||
FEED_OWNER_NPUB=
|
||||
# Comma-separated featured npubs, and extra relays to also pull those authors from.
|
||||
FEED_ALLOWLIST_NPUBS=
|
||||
FEED_EXTRA_RELAYS=
|
||||
|
||||
# ── Admin surface (see docs; default posture is loopback/Tor) ──────────────
|
||||
# Admin auth is "Sign in with Smirk": only admin PUBLIC keys are stored here,
|
||||
# never a seed or private key. The allowlist is mutated CLI/loopback-only in v1.
|
||||
|
||||
Reference in New Issue
Block a user