fix: actually strip stale SESSION_SECRET mentions from README
The gap-g-readme merge commit (57a8914) staged this fix but never
re-staged it after editing, so the merge landed with the pre-fix content —
the working tree had the correction but git didn't. No functional change,
just closing the gap between what was intended and what was committed.
This commit is contained in:
@@ -184,7 +184,7 @@ sudo -u postgres psql -c "CREATE DATABASE quantumancy_test OWNER quantumancy ENC
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
# edit .env: set a real SESSION_SECRET, confirm DATABASE_URL and OLLAMA_BASE_URL
|
||||
# edit .env: confirm DATABASE_URL and OLLAMA_BASE_URL
|
||||
```
|
||||
|
||||
**3. Backend:**
|
||||
@@ -256,13 +256,12 @@ Any Ollama tag works — override with `OLLAMA_FAST_MODEL` / `OLLAMA_CHAT_MODEL`
|
||||
|
||||
All settings live in `backend/app/config.py` and are read from the environment
|
||||
or `.env` (repo root when run via systemd; CWD otherwise). Required:
|
||||
`DATABASE_URL`, `OLLAMA_BASE_URL`, `SESSION_SECRET`.
|
||||
`DATABASE_URL`, `OLLAMA_BASE_URL`.
|
||||
|
||||
| Env var | Default | Purpose |
|
||||
|---|---|---|
|
||||
| `DATABASE_URL` | — (required) | asyncpg connection string, e.g. `postgresql+asyncpg://quantumancy:quantumancy@localhost:5432/quantumancy` |
|
||||
| `OLLAMA_BASE_URL` | — (required) | Ollama REST endpoint, e.g. `http://10.30.20.107:11434` |
|
||||
| `SESSION_SECRET` | — (required) | present in `Settings` but not currently read anywhere else in the app — session auth actually runs on random per-login tokens hashed into `auth_sessions` (`backend/app/models/auth_session.py`), not a signing secret. Still required to boot; set it to any random string. |
|
||||
| `PORT` | `7777` | HTTP listen port |
|
||||
| `OLLAMA_FAST_MODEL` | `granite4.1:3b` | fast tier: fragments, wire whispers |
|
||||
| `OLLAMA_CHAT_MODEL` | `minicpm-v4.5:latest` | chat tier: direct contact, entity minting |
|
||||
@@ -328,7 +327,6 @@ concurrent producers never interleave):
|
||||
cd backend && source venv/bin/activate
|
||||
DATABASE_URL=postgresql+asyncpg://quantumancy:quantumancy@localhost:5432/quantumancy_test \
|
||||
OLLAMA_BASE_URL=http://10.30.20.107:11434 \
|
||||
SESSION_SECRET=test-secret \
|
||||
python -m pytest -v
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user