> For the complete documentation index, see [llms.txt](https://www.nl-portal.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.nl-portal.nl/next/configuratie/basisconfiguratie.md). Agents can also search and read this documentation through its [MCP server](https://www.nl-portal.nl/~gitbook/mcp).

# Basisconfiguratie

Dit is de configuratie die NL Portal nodig heeft om te draaien, ook als alle functionaliteiten uit staan. De functionaliteiten zelf configureer je per pagina onder [Functionaliteiten](https://www.nl-portal.nl/next/functionaliteiten/overzicht.md).

| Onderdeel                                                                                              | Wat je instelt                                                     |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| [Deployment guide](https://www.nl-portal.nl/next/configuratie/basisconfiguratie/deployment-guide.md)   | Images, Helm charts en de schrijfwijze van environment variabelen. |
| [Keycloak](https://www.nl-portal.nl/next/configuratie/basisconfiguratie/keycloak.md)                   | Inloggen van inwoners en ondernemers, en de token exchange.        |
| [Database](https://www.nl-portal.nl/next/configuratie/basisconfiguratie/database.md)                   | PostgreSQL-verbinding en migraties.                                |
| [Beveiliging](https://www.nl-portal.nl/next/configuratie/basisconfiguratie/beveiliging.md)             | CORS, publieke endpoints, security headers en actuator.            |
| [Connectiviteit](https://www.nl-portal.nl/next/configuratie/basisconfiguratie/connectiviteit.md)       | Het aansluiten van systemen in de datalaag.                        |
| [Frontend-features](https://www.nl-portal.nl/next/configuratie/basisconfiguratie/frontend-features.md) | Instellingen die de frontend van de backend krijgt.                |

Minimaal heeft de backend nodig:

```shell
DATABASE_URL=jdbc:postgresql://postgres:5432/nl-portal
DATABASE_USERNAME=nlportal
DATABASE_PASSWORD=<wachtwoord>
JWKS_URI=https://keycloak.example.com/realms/nl-portal/protocol/openid-connect/certs
KEYCLOAK_CLIENT_ID=nl-portal-backend
KEYCLOAK_CLIENT_SECRET=<secret>
```

Zie `docker-compose/imports/backend.env` en `docker-compose/imports/frontend.env` in de monorepo voor een complete voorbeeldconfiguratie.
