From 19d30190e20f1c0b2848ea4043aaf9c31e48e386 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Tue, 5 Aug 2014 16:34:22 +0200 Subject: Add config.defaults.php to set default configuration options. The defaults can be overriden in the config.php file but some of them are fine as defaults. This will help in having a config.php file as short as we can. Also move utils.php to the includes directory. --- config.php.example | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'config.php.example') diff --git a/config.php.example b/config.php.example index fc093c1..13f7b33 100644 --- a/config.php.example +++ b/config.php.example @@ -6,48 +6,17 @@ $config['contact']['mail'] = 'support@example.com'; // Frontpage configuration -// CSS to use -$config['frontpage']['css'] = 'css/style.css'; // Title of the page $config['frontpage']['title'] = 'Looking Glass'; -$config['frontpage']['show_title'] = true; -// Logo to display +// Logo to display (remove it to not display any logo) $config['frontpage']['image'] = 'logo.png'; -// Show visitor IP address -$config['frontpage']['show_visitor_ip'] = true; // Disclaimer to inform people using the looking glass $config['frontpage']['disclaimer'] = 'This is a disclaimer!'; -// Frontpage order you can use: routers, commands, parameters, buttons -$config['frontpage']['order'] = array('routers', 'commands', 'parameters', 'buttons'); - -// Logs file when commands will be written -$config['misc']['logs'] = '/var/log/looking-glass.log'; - -// Allow private ASN -$config['misc']['allow_private_asn'] = false; // Things to remove from the output (PHP compatible regex) $config['filters'][] = '/(client1|client2)/'; $config['filters'][] = '/^NotToShow/'; -// Documentation for commands (must be HTML) - -// Documentation for the 'show route' query -$config['doc']['bgp']['query'] = 'Show the best routes to a given destination.'; -$config['doc']['bgp']['parameter'] = 'The parameter must be a valid destination. Destination means an IPv4/IPv6 address or a subnet. Masks are also accepted as part of a valid IPv4/IPv6 address.
Please note that some routers always need a mask to be given when looking for an IPv6 address.

Example of valid arguments: