Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 2.1 KB

config.md

File metadata and controls

74 lines (50 loc) · 2.1 KB

logo minitoring

Debian based distros

.deb package deploy configuration file in INI format in /etc/minitoring. To change anything in configuration, first create a local config file named /etc/minitoring/minitoring.local and use it to overwrite the keys you want.

This file won't be removed when you uninstall the .deb package with dpkg --remove or during update. To remove it use the --purge option.

Setup custom port for WebSocket API

Setup your local config file (/etc/minitoring/minitoring.local) like this (section within bracket is optional):

[websocket]
WEBSOCKET_PORT   = 12345
...

Setup a secure websocket server

Setup your local config file (/etc/minitoring/minitoring.local) like this (section within bracket is optional):

[websocket]
WEBSOCKET_USE_SECURE   = true,
WEBSOCKET_CERT_PATH    = '/etc/letsencrypt/live/EXAMPLE/fullchain.pem'
WEBSOCKET_KEY_PATH     = '/etc/letsencrypt/live/EXAMPLE/privkey.pem'

Other distros

In manual install, configuration is an indexed array of key/value parameters. To change anything in configuration, first create a local config file named minitoring.conf.local.php in the /app/config directory with the following content:

<?php
return array(
      // local changes here...

);

Use this file to overwrite any value of others config file.

Setup custom port for WebSocket API

Setup your local config file (app/config/minitoring.conf.local.php) like this:

<?php
return array(
      // use a custom port
      'WEBSOCKET_PORT'         => 12345,
      
      // other local changes here...
);

Setup a secure websocket server

Setup your local config file (app/config/minitoring.conf.local.php) like this:

<?php
return array(
      // use a secure websocket server, need to define certificate/key path
      'WEBSOCKET_USE_SECURE'   => true,
      'WEBSOCKET_CERT_PATH'    => '/etc/letsencrypt/live/EXAMPLE/fullchain.pem',
      'WEBSOCKET_KEY_PATH'     => '/etc/letsencrypt/live/EXAMPLE/privkey.pem',
      
      // other local changes here...
);