All checks were successful
Deploy to Server / deploy (push) Successful in 2m28s
- API client sends _environment param on all content/asset requests - GET /api/environments endpoint to list configured environments - EnvironmentSwitcher in Sidebar with i18n label "Space" - clearSession() also clears environment from sessionStorage - .env.example documents ADMIN_USERNAME/PASSWORD/SESSION_SECRET Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
2.3 KiB
Plaintext
47 lines
2.3 KiB
Plaintext
# Store backend: file | sqlite (default: file)
|
||
RUSTYCMS_STORE=file
|
||
|
||
# Multilingual: comma-separated locales (e.g. de,en). First = default. Content under content/{locale}/{collection}/.
|
||
RUSTYCMS_LOCALES=de,en
|
||
|
||
# Only when RUSTYCMS_STORE=sqlite: SQLite URL (default: sqlite:content.db)
|
||
# RUSTYCMS_DATABASE_URL=sqlite:content.db
|
||
|
||
# API key for write access. Single key = full access. Or use RUSTYCMS_API_KEYS for roles.
|
||
# Authorization: Bearer <key> or X-API-Key: <key>. For Admin UI: set same in admin-ui as NEXT_PUBLIC_RUSTYCMS_API_KEY.
|
||
RUSTYCMS_API_KEY=dein-geheimes-token
|
||
|
||
# Optional: multiple keys with roles. Overrides RUSTYCMS_API_KEY when set.
|
||
# Format: key1:role1,key2:role2. Roles: read (GET only), read_write (content + assets), admin (+ schemas).
|
||
# RUSTYCMS_API_KEYS=key1:read,key2:read_write,key3:admin
|
||
|
||
# Optional: environments = spaces (e.g. one per website). File store only. First = content/, others = content/<env>/.
|
||
# API: ?_environment=justpm for the other space. Default = first in list.
|
||
# RUSTYCMS_ENVIRONMENTS=windwiderstand,justpm
|
||
|
||
# Optional: webhook URLs (comma-separated). POST with JSON { event, collection?, slug?, ... } on content/asset/schema changes.
|
||
# RUSTYCMS_WEBHOOKS=https://example.com/hook
|
||
|
||
# Optional: CORS – allowed origin (e.g. https://my-frontend.com). Empty or * = allow all.
|
||
# RUSTYCMS_CORS_ORIGIN=
|
||
|
||
# Optional: Response cache for GET /api/content (TTL in seconds). 0 = off. Default: 60.
|
||
# RUSTYCMS_CACHE_TTL_SECS=60
|
||
|
||
# Optional: Public base URL of the API (e.g. https://api.example.com). Used to expand relative /api/assets/ paths in responses. Defaults to http://host:port.
|
||
# RUSTYCMS_BASE_URL=https://api.example.com
|
||
|
||
# Optional: Paths to types and content directories. Useful for keeping content in a separate repo.
|
||
# RUSTYCMS_TYPES_DIR=./types
|
||
# RUSTYCMS_CONTENT_DIR=./content
|
||
|
||
# --- Admin UI (Next.js, when running admin-ui e.g. npm run dev in admin-ui/) ---
|
||
# Login: open /admin/login. Required for login to succeed.
|
||
# ADMIN_USERNAME=admin
|
||
# ADMIN_PASSWORD=your-secret-password
|
||
# Optional: session cookie encryption. Change in production.
|
||
# SESSION_SECRET=min-32-chars-secret-for-iron-session!!
|
||
# Optional: API base URL and key for the admin (if not set, login returns API key from RUSTYCMS_API_KEY).
|
||
# NEXT_PUBLIC_RUSTYCMS_API_URL=http://127.0.0.1:3000
|
||
# NEXT_PUBLIC_RUSTYCMS_API_KEY=dein-geheimes-token
|