Getting Started

Environment variables

Reference every environment variable used by Lanjit 0.2.0.

Beta · v0.2.0Lanjit APIs may change before the stable release. Review the release notes and upgrade guide before updating.

Lanjit loads .env during application boot without replacing variables already provided by the process environment. Core settings cover the application, HTTP server, logging, SQLite or MySQL, and sessions.

Important defaults

The HTTP server uses 127.0.0.1:3333, SQLite uses database/database.sqlite, request bodies are limited to 1 MiB, and sessions last 120 minutes. Production should set APP_DEBUG=false, SESSION_SECURE_COOKIE=true, and a unique APP_KEY.

Examples

APP_DEBUG=false
SESSION_SECURE_COOKIE=true
Edit this page on GitHub

Type to search all documentation.