mirror of
https://github.com/benjaminjonard/koillection.git
synced 2025-12-27 22:43:12 +00:00
Page:
Configuration
No results
10
Configuration
Benjamin Jonard edited this page 2025-08-28 18:59:11 +02:00
Table of Contents
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 |
Reverse Proxy
| Name | Description | Remarks |
|---|---|---|
| SYMFONY_TRUSTED_PROXIES | Your reverse proxy IP, default value will cover all reverse proxies with private IPs | Default: private_ranges, can be an IP address. Some examples here https://symfony.com/doc/current/deployment/proxies.html |
| SYMFONY_TRUSTED_HEADERS | Headers forwarded by your reverse proxy, default values should cover most cases | Default : forwarded,x-forwarded-for,x-forwarded-host,x-forwarded-proto,x-forwarded-port,x-forwarded-prefix |
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 |