Configuration
Pressline keeps configuration in two places: the file pl-config.php and the database table webset.
pl-config.php
Only database credentials. Environment variables take precedence over file values, so you can keep the file committed and override at deploy time.
$db_server = getenv('PL_DB_HOST') ?: 'mysql:3306';
$db_user = getenv('PL_DB_USER') ?: '';
$db_password = getenv('PL_DB_PASS') ?: '';
$db_name = getenv('PL_DB_NAME') ?: '';
define('DEBUG', false);
webset (runtime config)
Everything else lives in the webset table — site name, URLs, SMTP, marketplace endpoint, role levels, update repo. Edit it from Nastavení in the admin.
| Key | Default | What it does |
|---|---|---|
name | Pressline | Brand name shown in titles and the nav |
url | https://admin.pressline.app | Admin URL (used for asset links) |
frontend | https://pressline.app | Public site URL |
language | cs | Default admin language |
admin_level | 2 | Minimum role level for admin pages |
dev_level | 3 | Minimum role level for destructive ops (updates, schema) |
smtp_host | smtp.seznam.cz | Mail relay for password reset |
smtp_port | 465 | |
smtp_sec | ssl | ssl or tls |
marketplace_url | https://marketplace.pressline.app | Plugin registry endpoint |
marketplace_telemetry | 1 | Anonymous install pings, can be disabled |
update_repo | maskalix/PressLine | GitHub repo for self-updates |