Getting started

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.

KeyDefaultWhat it does
namePresslineBrand name shown in titles and the nav
urlhttps://admin.pressline.appAdmin URL (used for asset links)
frontendhttps://pressline.appPublic site URL
languagecsDefault admin language
admin_level2Minimum role level for admin pages
dev_level3Minimum role level for destructive ops (updates, schema)
smtp_hostsmtp.seznam.czMail relay for password reset
smtp_port465
smtp_secsslssl or tls
marketplace_urlhttps://marketplace.pressline.appPlugin registry endpoint
marketplace_telemetry1Anonymous install pings, can be disabled
update_repomaskalix/PressLineGitHub repo for self-updates