config.php
Site configuration: the operator-editable settings (database connection, feed size, runtime flags). Fixed wiring lives in `bootstrap.php`.
Table of Contents
Constants
- CLOUD_SIZE : mixed = 50
- Most-used tags shown in the tag cloud.
- DB_HOST : mixed = \getenv('DB_HOST') ?: 'localhost'
- Database host ('localhost' by default).
- DB_NAME : mixed = \getenv('DB_NAME') ?: 'izartu'
- Database name ('izartu' by default).
- DB_PASS : mixed = \getenv('DB_PASS')
- Database password (from the `DB_PASS` environment variable).
- DB_PORT : mixed = 3306
- Database port. Only 3306 is supported.
- DB_TYPE : mixed = 'MySQL'
- Database type. Only `MySQL` is supported.
- DB_USER : mixed = \getenv('DB_USER')
- Database user (from the `DB_USER` environment variable).
- DEBUG : mixed = \true
- Debug mode: TRUE enables error output, the Server-Timing header and the query panel. Must be FALSE in production.
- PAGE_SIZE : mixed = 10
- Bookmarks per page on the feed.
- TAGS_PAGE_SIZE : mixed = 100
- Tags per page on the tag index (`/tags`).
Constants
CLOUD_SIZE
Most-used tags shown in the tag cloud.
public
mixed
CLOUD_SIZE
= 50
DB_HOST
Database host ('localhost' by default).
public
mixed
DB_HOST
= \getenv('DB_HOST') ?: 'localhost'
DB_NAME
Database name ('izartu' by default).
public
mixed
DB_NAME
= \getenv('DB_NAME') ?: 'izartu'
DB_PASS
Database password (from the `DB_PASS` environment variable).
public
mixed
DB_PASS
= \getenv('DB_PASS')
DB_PORT
Database port. Only 3306 is supported.
public
mixed
DB_PORT
= 3306
DB_TYPE
Database type. Only `MySQL` is supported.
public
mixed
DB_TYPE
= 'MySQL'
DB_USER
Database user (from the `DB_USER` environment variable).
public
mixed
DB_USER
= \getenv('DB_USER')
DEBUG
Debug mode: TRUE enables error output, the Server-Timing header and the query panel. Must be FALSE in production.
public
mixed
DEBUG
= \true
PAGE_SIZE
Bookmarks per page on the feed.
public
mixed
PAGE_SIZE
= 10
TAGS_PAGE_SIZE
Tags per page on the tag index (`/tags`).
public
mixed
TAGS_PAGE_SIZE
= 100