Files
2026-03-14 12:55:06 +01:00

39 lines
1.5 KiB
Plaintext

import { Callout } from 'nextra/components'
# Configuration Overview
LearnHouse uses environment variables as its primary configuration method. When you run `learnhouse setup`, the CLI generates a `.env` file with all the necessary variables based on your choices.
## Configuration Methods
LearnHouse supports two configuration methods:
1. **Environment variables** (via `.env` file) -- the primary and recommended method
2. **Configuration file** (`config.yaml`) -- an alternative for advanced users
<Callout type="info">
If both are present, environment variables always take precedence over values defined in `config.yaml`.
</Callout>
## Editing Configuration
You can modify your configuration at any time using the CLI:
```bash
learnhouse config --edit
```
Alternatively, edit the `.env` file directly and restart services:
```bash
learnhouse restart
```
## Configuration Sections
- [Environment Variables](/self-hosting/configuration/environment-variables) -- Complete reference of all available environment variables.
- [AI Setup](/self-hosting/configuration/ai-setup) -- Enable and configure AI-powered features.
- [Email](/self-hosting/configuration/email) -- Set up email delivery for invitations, password resets, and notifications.
- [Content Storage](/self-hosting/configuration/storage) -- Configure filesystem or S3-compatible storage for uploaded content.
- [SSL and Domain](/self-hosting/configuration/ssl) -- Set up your domain name and SSL certificates.