61 lines
2.1 KiB
Plaintext
61 lines
2.1 KiB
Plaintext
|
<?php
|
||
|
## Set this if you do not have a default timezone set for PHP or if the time
|
||
|
## is incorrect. See https://www.php.net/manual/en/timezones.php
|
||
|
#date_default_timezone_set('America/New_York');
|
||
|
|
||
|
## If you have troubles with incorrect file paths, you should change this
|
||
|
## value to your webroot.
|
||
|
#$ROOT = '/var/www/status';
|
||
|
$ROOT = $_SERVER['DOCUMENT_ROOT']?:getcwd();
|
||
|
|
||
|
## Page Head values.
|
||
|
$CONFIG['site_name'] = 'Shakespeare';
|
||
|
$CONFIG['page_name'] = 'Status';
|
||
|
$CONFIG['site_description'] = 'The Official Status Page of Shakespeare';
|
||
|
$CONFIG['site_message'] = 'Am I online?';
|
||
|
|
||
|
## SQL database
|
||
|
## Refer to https://www.php.net/manual/en/pdo.construct.php
|
||
|
$CONFIG['db_host'] = 'sqlite:'.$ROOT.'/data/status.db';
|
||
|
## If using sqlite, you do not need these.
|
||
|
$CONFIG['db_username'] = null;
|
||
|
$CONFIG['db_password'] = null;
|
||
|
|
||
|
## Maximum amount of slices to show per service on page.
|
||
|
$CONFIG['max_slices'] = 48;
|
||
|
|
||
|
## Formatting for timestamp when displayed on page.
|
||
|
$CONFIG['timestamp_format'] = 'H:i';
|
||
|
|
||
|
## SERVICES
|
||
|
## This array holds all the services to be checked on run.
|
||
|
$CONFIG['services'] = array(
|
||
|
## This is an example service.
|
||
|
#'plays'=>array(
|
||
|
## This will be the name of the service as displayed on the status page.
|
||
|
#'name'=>'Web Server',
|
||
|
|
||
|
## This will be the message displayed under the collapsable title.
|
||
|
#'message'=>'To be, or not to be.',
|
||
|
|
||
|
## The pid file of the service to check. If 'process' is also defined,
|
||
|
## this will override its check. Make sure the runner has permissions
|
||
|
## to read the file.
|
||
|
#'pidfile'=>'/run/nginx.pid',
|
||
|
|
||
|
## Icon to display alongside the service name. Path is relative to page.
|
||
|
## You can also leave this blank for no icon.
|
||
|
#'icon'=>'http.png',
|
||
|
|
||
|
## Name of the process to query. This will search using pgrep.
|
||
|
#'process'=>'nginx',
|
||
|
|
||
|
## Hostname of the server to ping. This and 'ports' may be omitted if
|
||
|
## you do not want to ping it.
|
||
|
#'hostname'=>'shakespear.lit',
|
||
|
|
||
|
## Array of ports to ping. If more than one port, the displayed ping will be averaged. Requires 'hostname' to function properly.
|
||
|
#'ports'=>array(80,443)
|
||
|
#)
|
||
|
);
|
||
|
?>
|