openvibers/openvibe.quest .env.example

.env.example

main 3.0 KB · 61 lines · plaintext

1# OpenVibe.Quest — environment (production: /etc/openvibe/quest.env). Names only; never commit values.
2
3NODE_ENV=production
4PORT=4980
5HOST=127.0.0.1
6BASE_URL=https://openvibe.quest
7TRUST_PROXY=2
8# PostgreSQL (ADR-035), written by OpenVibe.Host roles/data/add-service.sh quest: the runtime role through PgBouncer,
9# the owner on a direct connection (migrations), and Valkey (shared limit counters).
10# Without DATABASE_URL, development uses an embedded PGlite database in data/pglite.
11DATABASE_URL=
12DATABASE_DIRECT_URL=
13VALKEY_URL=
14VALKEY_PREFIX=ov:quest:
15# Per-caller limits (server/http/caller-limits.js): requests one caller may make to the API per minute and per hour.
16#QUEST_LIMITS_MINUTE=120
17#QUEST_LIMITS_HOUR=3000
18# Guided personalized daily quest reader: default off until the owner enables it.
19QUEST_GUIDED_TODAY=off
20QUEST_MEME_EVENTS_ENABLED=off
21
22# OpenVibe.Network: SSO (OAuth client `quest`, PKCE S256) and its JWKS; app tokens for audience openvibe.quest.
23OV_NETWORK_URL=https://openvibe.network
24OV_NETWORK_INTERNAL_URL=http://127.0.0.1:4000
25OV_DESIGN_INTERNAL_URL=http://127.0.0.1:5090
26# QUEST_DESIGN_DRAFTS=off
27# Daily quest generation through OpenVibe.AI (ai.complete, with a hand-written fallback).
28OV_AI_INTERNAL_URL=http://127.0.0.1:4700
29OV_OAUTH_CLIENT_ID=quest
30OV_OAUTH_CLIENT_SECRET=
31# OV_OAUTH_REDIRECT_URI=https://openvibe.quest/auth/callback
32# QUEST_AUDIENCE=openvibe.quest
33
34# optional: defaults to true in production
35# COOKIE_SECURE=true
36
37# OpenVibe.Events → Quest (server/events-consumer.js): POST /internal/events. The secret is what signs a delivery
38# (X-OpenVibe-Signature-V2, 32+ characters; comma-separated so one can be rotated in). Unset turns the consumer
39# off (503) and the quest log then never moves. QUEST_EVENTS_URL is OpenVibe.Events' base URL, used once at boot
40# to create the subscriptions for the events the catalog counts; unset leaves them to be created by hand.
41#QUEST_EVENTS_SECRET=
42#QUEST_EVENTS_URL=
43#QUEST_EVENTS_ENDPOINT=
44
45# OpenCoins (server/quests/coins.js). Rewards are badges and OpenCoins — loyalty points, never money, never Vibes.
46# QUEST_COINS is off by default: nothing is credited, a completion's coins are skipped, and the pages say the
47# rewards start soon. 'on' credits through OpenVibe.Network's wallet within the two daily caps, using this
48# service's client credentials. QUEST_COINS_RETRY_MS is how often a failed or unfinished credit is retried.
49QUEST_COINS=off
50#QUEST_COINS_DAILY_CAP=50
51#QUEST_COINS_GLOBAL_DAILY_CAP=5000
52#QUEST_COINS_RETRY_MS=300000
53
54# Item rewards (server/quests/items.js): six quests also give one of Live's items in OpenVibe.Inventory, granted with
55# this service's client credentials (audience openvibe.inventory, inventory.item.grant; Live names Quest a grantor of
56# those items). On by default: an item is free and never money. A failed grant is retried, and so is every completion
57# from before items, so earlier finishers get theirs.
58#QUEST_ITEMS=on
59#OV_INVENTORY_INTERNAL_URL=http://127.0.0.1:5030
60#QUEST_ITEMS_RETRY_MS=300000
61