|
1
|
# Configuration |
|
2
|
|
|
3
|
All configuration is via environment variables. |
|
4
|
|
|
5
|
## AI Backend |
|
6
|
|
|
7
|
| Variable | Default | Description | |
|
8
|
|----------|---------|-------------| |
|
9
|
| `HUGOIFIER_BACKEND` | `anthropic` | Backend to use: `anthropic`, `openai`, or `google` | |
|
10
|
| `ANTHROPIC_API_KEY` | — | Required when using Anthropic backend | |
|
11
|
| `OPENAI_API_KEY` | — | Required when using OpenAI backend | |
|
12
|
| `GOOGLE_API_KEY` | — | Required when using Google backend | |
|
13
|
| `ANTHROPIC_MODEL` | `claude-sonnet-4-6` | Anthropic model override | |
|
14
|
| `OPENAI_MODEL` | `gpt-4-turbo` | OpenAI model override | |
|
15
|
| `GOOGLE_MODEL` | `gemini-1.5-pro` | Google model override | |
|
16
|
| `HUGOIFIER_MAX_TOKENS` | `4096` | Max tokens for AI responses | |
|
17
|
|
|
18
|
## Decap CMS Defaults |
|
19
|
|
|
20
|
| Variable | Default | Description | |
|
21
|
|----------|---------|-------------| |
|
22
|
| `CMS_NAME` | `Content Manager` | Default CMS admin panel title | |
|
23
|
| `CMS_LOGO_URL` | _(empty)_ | Default logo URL for admin panel | |
|
24
|
| `CMS_COLOR` | `#2e3748` | Default top-bar hex color | |
|
25
|
|
|
26
|
These defaults apply when the corresponding CLI flags (`--cms-name`, `--cms-logo`, `--cms-color`) are not passed. |
|
27
|
|
|
28
|
## Example `.env` |
|
29
|
|
|
30
|
```bash |
|
31
|
HUGOIFIER_BACKEND=anthropic |
|
32
|
ANTHROPIC_API_KEY=sk-ant-... |
|
33
|
|
|
34
|
CMS_NAME=My Studio |
|
35
|
CMS_COLOR=#1a1a2e |
|
36
|
``` |
|
37
|
|
|
38
|
!!! warning |
|
39
|
Never commit `.env` to version control. It is listed in `.gitignore`. |
|
40
|
|