File size: 1,327 Bytes
77da5ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | # configuration.md — Configuration Reference
Environment variables, secrets, and server configuration for LifeStack.
---
## Environment Variables
Copy `.env.example` to `.env` and fill in values:
```bash
cp .env.example .env
```
| Variable | Required | Description |
|---|---|---|
| `OPENAI_API_KEY` | For agent/training | API key for the LLM agent and GRPO reward function |
| `GROQ_API_KEY` | Optional | Alternative fast-inference backend |
| `GMAIL_CREDENTIALS_PATH` | Optional | Path to Gmail OAuth2 credentials JSON |
> **Never commit `.env`** — it is listed in `.gitignore`.
---
## `openenv.yaml`
Defines the OpenEnv service manifest for MCP / REST integration.
```yaml
name: lifestack
version: "1.1.0"
entry: server.py
port: 8000
```
Edit this file if you rename the server entry point or change the port.
---
## Gradio App
Configured in `app.py` `__main__` block:
```python
app.launch(
share=False,
server_port=7860,
show_error=True,
)
```
Change `server_port` or set `share=True` for a public Gradio link.
---
## Docker
```bash
docker build -t lifestack:latest .
docker run -p 7860:7860 --env-file .env lifestack:latest
```
The `Dockerfile` installs `requirements.txt` and runs `python app.py`.
---
## Change Log
| Date | Change |
|---|---|
| 2026-04-23 | Initial doc created |
|