Skip to main content

System

Configuration Keys

  • projectName: The name of the project.
  • howManyBakFiles: The number of backup files to keep.
  • postReportLength: The length of the post report.
  • timezone: The timezone setting for the application.
  • PHP_Security: The security level for PHP.
  • Debug: A boolean indicating whether debugging is enabled.
  • HeaderKeyFile: The path to the header key file, using the workdir: variable.
  • sessionTimeout: The session timeout duration in seconds.
  • waitingtime_importRoutes: The waiting time for importing routes in seconds.

Addon Configuration

  • Addon: Configuration for addons.
    • addonFolders: An array of paths to addon folders, using the core: and workdir: variables.
    • allowedExtensions: An array of allowed file extensions for addons.
  • navSorting: An array defining the order of navigation items in the backend.

Backend Configuration

  • Backend: Configuration for the backend.
    • scripts: An array of scripts to be included in the backend, with support for wildcards.

Example Configuration

/private/config/system/pingojsConf.php
<?php
$GLOBALS["PINGOJS_CONF"] = [
"projectName" => "Dev",
"howManyBakFiles" => 10,
"postReportLength" => 100,

"timezone" => "Europe/Berlin",

"PHP_Security" => 8.4,
"PHP_Path" => '/usr/bin/php8.4',
"SERVER_PHP_Path" => '',
"Debug" => false,
"HeaderKeyFile" => "workdir:private/.token",
"sessionTimeout" => ((1800 * 2) * 24), // in seconds
"ApiAuthentication" => true,
"waitingtime_importRoutes" => 1800, // in second

"Addon" => [
"addonFolders" => [
"core:pingo/work/backend/",
"workdir:vendor/"
],
"allowedExtensions" => [
"js",
"css",
"svg"
]
],

"navSorting" => [
"dashboard",
"edit",
"sites",
"dataliste",
"seo",
"user",
"settings",
"data",
"logs"
],

"Backend" => [
"scripts" => [
"*.css",
"*.js",
"*.svg",
"gg/pp/main.php"
]
]
];

include __DIR__ . "/databaseConf.php";
tip

workdir: and core: are PingoJS Variables.