docs: Bring all documentation up to date for v2.10.1
- architecture/: overview, technology stack, auth (OIDC + built-in IndieAuth), syndication (POSSE) rewritten; new database.md, deployment.md and indieweb-protocols.md; legacy stack marked historical - decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections (superseded auth ADRs, proposed -> accepted); INDEX rebuilt - design/: reconstructed the v1.6.0 documents the webmention code cites; reports for 18 v2 releases without a design folder; INDEX rebuilt - projectplan/: BACKLOG rewritten (shipped items removed, open issues from the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX - standards/: development setup (uv, tests, DEV_MODE), testing (CI test stage), git and release flow, versioning, coding standards, cookies - README, CLAUDE.md, .env.example (every setting the code reads, with defaults) brought up to date - 137 broken links repaired (old absolute paths, moved files); stale ADR references in code comments corrected (comments only) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa551de197
commit
0716984958
143 files changed
+6222
-8660
No files matched your search
+151
-89
@@ -1,34 +1,46 @@
|
||||
# StarPunk Configuration Template
|
||||
# Copy this file to .env and fill in your values
|
||||
# DO NOT commit .env to version control
|
||||
# StarPunk configuration template (v2.10.1)
|
||||
#
|
||||
# Copy to .env and fill in your values. DO NOT commit .env.
|
||||
# Every variable here is read by starpunk/config.py. Uncommented lines are
|
||||
# the ones you normally set; commented lines show the built-in default and
|
||||
# only need uncommenting to change it. Real environment variables take
|
||||
# precedence over .env.
|
||||
|
||||
# =============================================================================
|
||||
# SITE CONFIGURATION
|
||||
# SITE
|
||||
# =============================================================================
|
||||
|
||||
# Public URL where your site is hosted (no trailing slash)
|
||||
# Public URL of the site (a trailing slash is added if missing)
|
||||
# (default: http://localhost:5000)
|
||||
SITE_URL=http://localhost:5000
|
||||
|
||||
# Your site name (appears in RSS feed and page titles)
|
||||
# Site name: page titles and feeds (default: StarPunk)
|
||||
SITE_NAME=My StarPunk Site
|
||||
|
||||
# Your name (appears as author in RSS feed)
|
||||
# Author name; must be non-empty but is not currently displayed: pages use
|
||||
# the h-card discovered at ADMIN_ME (default: Unknown)
|
||||
SITE_AUTHOR=Your Name
|
||||
|
||||
# Site description (appears in RSS feed)
|
||||
# Feed description (default: A minimal IndieWeb CMS)
|
||||
SITE_DESCRIPTION=My personal IndieWeb site
|
||||
|
||||
# =============================================================================
|
||||
# AUTHENTICATION
|
||||
# =============================================================================
|
||||
|
||||
# Your identity URL (REQUIRED)
|
||||
# Your personal website. Used as the author h-card source and as the "me"
|
||||
# value in Micropub tokens. It should link to this site's IndieAuth metadata
|
||||
# (see docs/decisions/ADR-064) so Micropub apps can find StarPunk.
|
||||
# Your identity URL (REQUIRED unless DEV_MODE=true). Used as the author h-card
|
||||
# source and as the "me" of Micropub tokens. It should link to this site's
|
||||
# IndieAuth metadata so Micropub apps can find StarPunk (ADR-064).
|
||||
ADMIN_ME=https://your-website.com
|
||||
|
||||
# Admin login via OpenID Connect (REQUIRED in production)
|
||||
# Session secret (REQUIRED: the app refuses to start without it)
|
||||
# Generate with: python3 -c "import secrets; print(secrets.token_hex(32))"
|
||||
SESSION_SECRET=REPLACE_WITH_RANDOM_SECRET
|
||||
|
||||
# Flask secret key (default: SESSION_SECRET)
|
||||
# FLASK_SECRET_KEY=
|
||||
|
||||
# Admin session lifetime in days (default: 30)
|
||||
# SESSION_LIFETIME=30
|
||||
|
||||
# Admin login via OpenID Connect (all four REQUIRED unless DEV_MODE=true)
|
||||
# Register StarPunk as a confidential client with your provider (e.g. Pocket ID)
|
||||
# using the callback URL: <SITE_URL>/auth/callback
|
||||
OIDC_ISSUER=https://id.example.com
|
||||
@@ -37,118 +49,168 @@ OIDC_CLIENT_SECRET=
|
||||
# The provider's subject ("sub") of the one account allowed to log in.
|
||||
# Pocket ID: the user's ID shown in the admin user list.
|
||||
OIDC_ADMIN_SUB=
|
||||
# Name shown on the login button (default: "single sign-on")
|
||||
# Name shown on the login button (default: single sign-on)
|
||||
OIDC_PROVIDER_NAME=Pocket ID
|
||||
|
||||
# Session secret key (REQUIRED - GENERATE A RANDOM VALUE)
|
||||
# Generate with: python3 -c "import secrets; print(secrets.token_hex(32))"
|
||||
SESSION_SECRET=REPLACE_WITH_RANDOM_SECRET
|
||||
|
||||
# Session lifetime in days (default: 30)
|
||||
SESSION_LIFETIME=30
|
||||
|
||||
# Lifetime of Micropub access tokens StarPunk issues, in days (default: 90)
|
||||
INDIEAUTH_TOKEN_LIFETIME_DAYS=90
|
||||
# Lifetime of the Micropub access tokens StarPunk's IndieAuth server issues,
|
||||
# in days (default: 90)
|
||||
# INDIEAUTH_TOKEN_LIFETIME_DAYS=90
|
||||
|
||||
# =============================================================================
|
||||
# CROSSPOSTING (optional, v2.1.0)
|
||||
# DATA STORAGE (the container image sets /data, /data/notes, /data/starpunk.db)
|
||||
# =============================================================================
|
||||
|
||||
# GoToSocial or Mastodon account to copy new notes to. Create an app token
|
||||
# with scopes: write:statuses write:media
|
||||
GOTOSOCIAL_URL=
|
||||
GOTOSOCIAL_ACCESS_TOKEN=
|
||||
# Name shown in the editor and Micropub apps (default: GoToSocial)
|
||||
GOTOSOCIAL_NAME=GoToSocial
|
||||
# public, unlisted, private (default: public)
|
||||
GOTOSOCIAL_VISIBILITY=public
|
||||
|
||||
# Threads account (v2.6.0). A long-lived user token with threads_basic,
|
||||
# threads_content_publish and threads_delete; StarPunk refreshes it daily and
|
||||
# keeps the current one in DATA_PATH/threads_token.json.
|
||||
# How to get one: docs/design/v2.6.0/2026-10-31-threads-crossposting.md
|
||||
THREADS_ACCESS_TOKEN=
|
||||
# Your Threads username (for the Micropub syndicate-to uid)
|
||||
THREADS_USERNAME=
|
||||
|
||||
# =============================================================================
|
||||
# DATA STORAGE
|
||||
# =============================================================================
|
||||
|
||||
# Base data directory (relative to project root)
|
||||
# Base data directory: notes (DATA_PATH/notes), media, logs,
|
||||
# threads_token.json (default: ./data)
|
||||
DATA_PATH=./data
|
||||
|
||||
# Notes directory (where markdown files are stored)
|
||||
# Created at startup; note files are always written under DATA_PATH/notes,
|
||||
# so keep this equal to that (default: ./data/notes)
|
||||
NOTES_PATH=./data/notes
|
||||
|
||||
# SQLite database path
|
||||
# SQLite database (default: ./data/starpunk.db)
|
||||
DATABASE_PATH=./data/starpunk.db
|
||||
|
||||
# =============================================================================
|
||||
# FLASK CONFIGURATION
|
||||
# FLASK / LOGGING
|
||||
# =============================================================================
|
||||
|
||||
# Environment: development or production
|
||||
# development or production (default: development)
|
||||
FLASK_ENV=development
|
||||
|
||||
# Debug mode: 1 (on) or 0 (off)
|
||||
# NEVER use debug mode in production
|
||||
# 1 = debug on, 0 = off (default: 1). Set 0 in production.
|
||||
FLASK_DEBUG=1
|
||||
|
||||
# Flask secret key (falls back to SESSION_SECRET if not set)
|
||||
FLASK_SECRET_KEY=
|
||||
# DEBUG, INFO, WARNING, ERROR or CRITICAL (default: INFO)
|
||||
LOG_LEVEL=INFO
|
||||
# Overrides the version shown in the footer and /health (default: the
|
||||
# package version, starpunk.__version__). Normally leave unset.
|
||||
# VERSION=
|
||||
|
||||
# =============================================================================
|
||||
# RSS FEED CONFIGURATION
|
||||
# DEVELOPMENT LOGIN (never in production)
|
||||
# =============================================================================
|
||||
|
||||
# Maximum number of items in RSS feed (default: 50)
|
||||
FEED_MAX_ITEMS=50
|
||||
|
||||
# Feed cache duration in seconds (default: 300 = 5 minutes)
|
||||
FEED_CACHE_SECONDS=300
|
||||
# DEV_MODE=true adds /dev/login, which logs you in as DEV_ADMIN_ME without
|
||||
# OIDC, and makes ADMIN_ME and OIDC_* optional (default: false)
|
||||
# DEV_MODE=false
|
||||
# Identity used by /dev/login (required when DEV_MODE=true)
|
||||
# DEV_ADMIN_ME=http://localhost:5000/
|
||||
|
||||
# =============================================================================
|
||||
# CONTAINER CONFIGURATION
|
||||
# REVERSE PROXY
|
||||
# =============================================================================
|
||||
|
||||
# Environment: development or production
|
||||
ENVIRONMENT=production
|
||||
|
||||
# Number of Gunicorn workers (default: 4)
|
||||
# Recommendation: (2 x CPU cores) + 1
|
||||
WORKERS=4
|
||||
|
||||
# Worker timeout in seconds (default: 30)
|
||||
WORKER_TIMEOUT=30
|
||||
|
||||
# Max requests per worker before restart (prevents memory leaks)
|
||||
MAX_REQUESTS=1000
|
||||
|
||||
# Behind a reverse proxy (Caddy, nginx): take the client address from
|
||||
# X-Forwarded-For. Without it every visitor shares the proxy's address, so one
|
||||
# busy client can rate-limit everyone on /webmention and /websub.
|
||||
# Only enable when the proxy sets X-Forwarded-For itself (Caddy does).
|
||||
TRUSTED_PROXY=true
|
||||
# (default: false)
|
||||
TRUSTED_PROXY=false
|
||||
|
||||
# =============================================================================
|
||||
# FEEDS
|
||||
# =============================================================================
|
||||
|
||||
# Items per feed (default: 50)
|
||||
# FEED_MAX_ITEMS=50
|
||||
# Feed cache lifetime in seconds; changes to notes clear it (default: 300)
|
||||
# FEED_CACHE_SECONDS=300
|
||||
# FEED_CACHE_ENABLED=true
|
||||
# Cached feed variants kept (default: 50)
|
||||
# FEED_CACHE_MAX_SIZE=50
|
||||
|
||||
# =============================================================================
|
||||
# WEBMENTION
|
||||
# =============================================================================
|
||||
|
||||
# Receive webmentions at /webmention (default: true)
|
||||
# WEBMENTION_ENABLED=true
|
||||
# Background worker that verifies received webmentions and sends outgoing
|
||||
# ones (default: true)
|
||||
# WEBMENTION_WORKER_ENABLED=true
|
||||
# Seconds between queue checks (default: 10) and after an error (default: 60)
|
||||
# WEBMENTION_POLL_INTERVAL=10
|
||||
# WEBMENTION_ERROR_BACKOFF=60
|
||||
# Items per worker pass (default: 5)
|
||||
# WEBMENTION_BATCH_SIZE=5
|
||||
# Show verified mentions without moderation (default: true)
|
||||
# WEBMENTION_AUTO_APPROVE=true
|
||||
# Rate limits on /webmention: requests per window per client IP (default: 60)
|
||||
# and per source domain (default: 10); window in seconds (default: 60)
|
||||
# WEBMENTION_RATE_LIMIT_ENABLED=true
|
||||
# WEBMENTION_RATE_LIMIT_IP=60
|
||||
# WEBMENTION_RATE_LIMIT_DOMAIN=10
|
||||
# WEBMENTION_RATE_LIMIT_WINDOW=60
|
||||
|
||||
# =============================================================================
|
||||
# WEBSUB (v2.10.0)
|
||||
# =============================================================================
|
||||
|
||||
# Built-in hub at /websub for this site's feeds. Set WEBSUB_HUB_URL to use
|
||||
# another hub instead (StarPunk then pings it on changes).
|
||||
# another hub instead (StarPunk then pings it on changes). (default: true)
|
||||
WEBSUB_ENABLED=true
|
||||
# WEBSUB_HUB_URL=https://hub.example.com/
|
||||
# Subscriptions in total, pending included (default: 1000)
|
||||
# WEBSUB_MAX_SUBSCRIPTIONS=1000
|
||||
# Per callback server (resolved address)
|
||||
# Per callback server (resolved address) (default: 25)
|
||||
# WEBSUB_MAX_PER_HOST=25
|
||||
# Seconds between hub worker passes (default: 5)
|
||||
# WEBSUB_POLL_INTERVAL=5
|
||||
|
||||
# =============================================================================
|
||||
# DEVELOPMENT OPTIONS
|
||||
# CROSSPOSTING / POSSE (optional; a target is enabled when its credentials
|
||||
# are set)
|
||||
# =============================================================================
|
||||
|
||||
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||
LOG_LEVEL=INFO
|
||||
# GoToSocial or any Mastodon-API server (v2.1.0, ADR-065). Create an app
|
||||
# token with scopes: write:statuses write:media, plus read:search
|
||||
# write:favourites for native likes and boosts (v2.5.0)
|
||||
GOTOSOCIAL_URL=
|
||||
GOTOSOCIAL_ACCESS_TOKEN=
|
||||
# Name shown in the editor and Micropub apps (default: GoToSocial)
|
||||
# GOTOSOCIAL_NAME=GoToSocial
|
||||
# public, unlisted or private (default: public)
|
||||
# GOTOSOCIAL_VISIBILITY=public
|
||||
# Server limits (defaults: 5000 characters, 4 images)
|
||||
# GOTOSOCIAL_MAX_CHARS=5000
|
||||
# GOTOSOCIAL_MAX_MEDIA=4
|
||||
|
||||
# Enable SQL query logging (development only)
|
||||
SQL_ECHO=0
|
||||
# Bluesky (v2.2.0, ADR-066). Use an app password, not your account password.
|
||||
BLUESKY_HANDLE=
|
||||
BLUESKY_APP_PASSWORD=
|
||||
# PDS / entryway (default: https://bsky.social)
|
||||
# BLUESKY_SERVICE=https://bsky.social
|
||||
# BLUESKY_NAME=Bluesky
|
||||
# BLUESKY_MAX_CHARS=300
|
||||
|
||||
# Threads (v2.6.0, ADR-069). A long-lived user token with threads_basic,
|
||||
# threads_content_publish and threads_delete; StarPunk refreshes it daily and
|
||||
# keeps the current one in DATA_PATH/threads_token.json.
|
||||
# How to get one: docs/design/v2.6.0/2026-10-31-threads-crossposting.md
|
||||
THREADS_ACCESS_TOKEN=
|
||||
# Your Threads username (for the Micropub syndicate-to uid)
|
||||
THREADS_USERNAME=
|
||||
# THREADS_NAME=Threads
|
||||
# THREADS_MAX_CHARS=500
|
||||
# THREADS_MAX_MEDIA=4
|
||||
|
||||
# Seconds between syndication worker passes (default: 10)
|
||||
# SYNDICATION_POLL_INTERVAL=10
|
||||
|
||||
# =============================================================================
|
||||
# MONITORING
|
||||
# =============================================================================
|
||||
|
||||
# Metrics shown on /admin/metrics-dashboard (default: true)
|
||||
# METRICS_ENABLED=true
|
||||
# Queries slower than this many seconds are logged (default: 1.0)
|
||||
# METRICS_SLOW_QUERY_THRESHOLD=1.0
|
||||
# Fraction of operations recorded, 0.0-1.0 (default: 1.0)
|
||||
# METRICS_SAMPLING_RATE=1.0
|
||||
# METRICS_BUFFER_SIZE=1000
|
||||
# Seconds between memory samples (default: 30)
|
||||
# METRICS_MEMORY_INTERVAL=30
|
||||
|
||||
# Keep uploads that fail processing in DATA_PATH/debug for diagnosis
|
||||
# (default: false); cleaned up by age (default: 7 days) and total size
|
||||
# (default: 100 MB)
|
||||
# DEBUG_SAVE_FAILED_UPLOADS=false
|
||||
# DEBUG_FILE_MAX_AGE_DAYS=7
|
||||
# DEBUG_FILE_MAX_SIZE_MB=100
|
||||
Reference in new issue
Block a user