Skip to content

Configuration

Benjamin Jonard edited this page Dec 13, 2023 · 8 revisions

Available environment variables.

For Docker installation, those variables are to be set in your docker-compose.yaml file.

Otherwise, they are to be set in your .env.local file

Database

Name Description Remarks
DB_DRIVER Your database driver pdo_mysql for Mysql and MariaDB, pdo_pgsql for Postgresql
DB_USER Your database user
DB_PASSWORD Your database password
DB_HOST Your database address ex: 127.0.0.1 or localhost
DB_PORT Your database port 5432 by default for Postgresl, 3306 for Mysql and MariaDB
DB_NAME Your database name
DB_VERSION Your database server version ex: 10.3

Misc

Name Description Remarks
APP_ENV Symfony environment, prod by default prod or dev
APP_DEBUG Activate Symfony debug mode, 0 by default 0 or 1
APP_SECRET Random string used for security Automatically generated if using docker
CORS_ALLOW_ORIGIN Urls allowed to call the REST API, change this only if you are using the API from another domain name
JWT_SECRET_KEY Path to your secret key Automatically generated if using docker
JWT_PUBLIC_KEY Path to your public key Automatically generated if using docker
JWT_PASSPHRASE Passphrase for your private key Automatically generated if using docker
PHP_TZ Your timezone https://www.w3schools.com/php/php_ref_timezones.asp
PHP_MEMORY_LIMIT Max RAM allowed for PHP, default should be plenty Defaults to 512M
UPLOAD_MAX_FILESIZE Max file size for uploads Defaults to 20M
HTTPS_ENABLED If your instance uses https 0 or 1

FrankenPHP

Name Description Remarks
FRANKENPHP_CONFIG Path to the public/index.php file Defaults to worker /app/public/public/index.php if using docker
FRANKENPHP_SERVER_NAME Your domain exemple.com, localhost, :80, defaults to :80 if using docker