config.php
Site configuration: the catalogue of settings and their defaults. Every one can be overridden through an environment variable of the same name, so a deployment never needs to edit this (tracked) file. Fixed wiring lives in `bootstrap.php`.
Table of Contents
Constants
- BASE : mixed = \env('BASE', \basePath())
- Base URL path of the install ('' at a domain root, '/sub' in a sub-directory).
- CLOUD_SIZE : mixed = \max(1, (int) \env('CLOUD_SIZE', '50'))
- Most-used tags shown in the tag cloud.
- DB_HOST : mixed = \env('DB_HOST', 'localhost')
- Database host ('localhost' by default).
- DB_NAME : mixed = \env('DB_NAME', 'izartu')
- Database name ('izartu' by default).
- DB_PASS : mixed = \env('DB_PASS')
- Database password (required, no default).
- DB_PORT : mixed = (int) \env('DB_PORT', '3306')
- Database port (3306 by default).
- DB_SSL_CA_FILE : mixed = \env('DB_SSL_CA_FILE')
- CA file to verify the server's certificate against (unset by default: the CAs the system trusts).
- DB_SSL_ENABLED : mixed = \filter_var(\env('DB_SSL_ENABLED', '1'), \FILTE...
- Encrypt the connection over TCP; a Unix socket, `localhost` included, never is. On by default; `0`/`false`/`off`/`no` turn it off, any other value on.
- DB_SSL_VERIFY_CERT : mixed = \filter_var(\env('DB_SSL_VERIFY_CERT', \DB_SSL_...
- Verify the server's certificate, name included. On by default with `DB_SSL_CA_FILE`, off without it; `0`/`false`/`off`/`no` turn it off, any other value on.
- DB_USER : mixed = \env('DB_USER')
- Database user (required, no default).
- DEBUG : mixed = \filter_var(\env('DEBUG'), \FILTER_VALIDATE_BOOL)
- Debug mode (off by default; `1`/`true`/`on`/`yes` enable it): PHP's errors and the cause of a failed request on the page, the Server-Timing header and the query panel.
- PAGE_SIZE : mixed = \max(1, (int) \env('PAGE_SIZE', '10'))
- Bookmarks per page on the feed.
- TAGS_PAGE_SIZE : mixed = \max(1, (int) \env('TAGS_PAGE_SIZE', '100'))
- Tags per page on the tag index (`/tags`).
- TIMEZONE : mixed = \env('TIMEZONE', \date_default_timezone_get())
- Timezone of the dates shown, such as 'Europe/Madrid' (PHP's `date.timezone` by default; UTC when that is unset). A name PHP does not know stops the app.
- VERSION : mixed = \env('VERSION', \Version::running())
- The running version, shown in the footer and linked to its source; read from the tree when unset.
Constants
BASE
Base URL path of the install ('' at a domain root, '/sub' in a sub-directory).
public
mixed
BASE
= \env('BASE', \basePath())
Detected from the request by default; set it when a reverse proxy serves the app under a path the request does not carry.
CLOUD_SIZE
Most-used tags shown in the tag cloud.
public
mixed
CLOUD_SIZE
= \max(1, (int) \env('CLOUD_SIZE', '50'))
DB_HOST
Database host ('localhost' by default).
public
mixed
DB_HOST
= \env('DB_HOST', 'localhost')
DB_NAME
Database name ('izartu' by default).
public
mixed
DB_NAME
= \env('DB_NAME', 'izartu')
DB_PASS
Database password (required, no default).
public
mixed
DB_PASS
= \env('DB_PASS')
DB_PORT
Database port (3306 by default).
public
mixed
DB_PORT
= (int) \env('DB_PORT', '3306')
DB_SSL_CA_FILE
CA file to verify the server's certificate against (unset by default: the CAs the system trusts).
public
mixed
DB_SSL_CA_FILE
= \env('DB_SSL_CA_FILE')
DB_SSL_ENABLED
Encrypt the connection over TCP; a Unix socket, `localhost` included, never is. On by default; `0`/`false`/`off`/`no` turn it off, any other value on.
public
mixed
DB_SSL_ENABLED
= \filter_var(\env('DB_SSL_ENABLED', '1'), \FILTER_VALIDATE_BOOL, \FILTER_NULL_ON_FAILURE) !== \false
DB_SSL_VERIFY_CERT
Verify the server's certificate, name included. On by default with `DB_SSL_CA_FILE`, off without it; `0`/`false`/`off`/`no` turn it off, any other value on.
public
mixed
DB_SSL_VERIFY_CERT
= \filter_var(\env('DB_SSL_VERIFY_CERT', \DB_SSL_CA_FILE === '' ? '0' : '1'), \FILTER_VALIDATE_BOOL, \FILTER_NULL_ON_FAILURE) !== \false
DB_USER
Database user (required, no default).
public
mixed
DB_USER
= \env('DB_USER')
DEBUG
Debug mode (off by default; `1`/`true`/`on`/`yes` enable it): PHP's errors and the cause of a failed request on the page, the Server-Timing header and the query panel.
public
mixed
DEBUG
= \filter_var(\env('DEBUG'), \FILTER_VALIDATE_BOOL)
PAGE_SIZE
Bookmarks per page on the feed.
public
mixed
PAGE_SIZE
= \max(1, (int) \env('PAGE_SIZE', '10'))
TAGS_PAGE_SIZE
Tags per page on the tag index (`/tags`).
public
mixed
TAGS_PAGE_SIZE
= \max(1, (int) \env('TAGS_PAGE_SIZE', '100'))
TIMEZONE
Timezone of the dates shown, such as 'Europe/Madrid' (PHP's `date.timezone` by default; UTC when that is unset). A name PHP does not know stops the app.
public
mixed
TIMEZONE
= \env('TIMEZONE', \date_default_timezone_get())
VERSION
The running version, shown in the footer and linked to its source; read from the tree when unset.
public
mixed
VERSION
= \env('VERSION', \Version::running())