Line 56: |
Line 56: |
| # .html.ep file in the themes/default/templates/layout directory being the top level panel plus includes to subsidiary panels. | | # .html.ep file in the themes/default/templates/layout directory being the top level panel plus includes to subsidiary panels. |
| # In addition there may be "extra" .html.ep files in the themes/default/templates/layout/partials directory, which are conditionally included in the top level panel code. | | # In addition there may be "extra" .html.ep files in the themes/default/templates/layout/partials directory, which are conditionally included in the top level panel code. |
| + | |
| + | === Configuration/Preferences File === |
| + | This is found in /usr/share/smanager/conf/srvmngr.conf. Initial contents are:<syntaxhighlight lang="text"> |
| + | #------------------------------------------------------------ |
| + | # !!DO NOT MODIFY THIS FILE!! |
| + | # |
| + | # Manual changes will be lost when this file is regenerated. |
| + | # |
| + | # Please read the developer's guide, which is available |
| + | # at http://www.contribs.org/development/ |
| + | # |
| + | # Copyright (C) 1999-2006 Mitel Networks Corporation |
| + | #------------------------------------------------------------ |
| + | { |
| + | # configuration file for Mojolicious Server-Manager2 application |
| + | # |
| + | secrets => ['blah blah'], |
| + | theme => 'default', |
| + | # session timeout |
| + | timeout => '300', |
| + | hypnotoad => { |
| + | ## adresses and ports listened |
| + | listen => ['http://127.0.0.1:982'], |
| + | proxy => 1, |
| + | pid_file => '/var/run/smanager.pid', |
| + | |
| + | ## process number based on CPU number [x 2] |
| + | workers => (`grep processor /proc/cpuinfo | wc -l` * 2), |
| + | |
| + | ## connections queue size, per worker |
| + | accepts => 100, |
| + | |
| + | ## propriétaire et groupe du serveur |
| + | user => 'admin', |
| + | group => 'admin' |
| + | }, |
| + | # is js-jquery available |
| + | hasJquery => 1, |
| + | modules_dir => 'lib/SrvMngr/Controller', |
| + | webapp => 'smanager', |
| + | mode => 'production', |
| + | debug => 0, |
| + | } |
| + | |
| + | </syntaxhighlight>If you change the "mode" => "development", then when you get a runtime error it will show you the context. Otherwise it just gives a generic error message. |
| + | |
| + | The file is templated so every time you reload the rpm then it will get set to "production", unless you as a custom template to: |
| + | |
| + | "/etc/e-smith/templates/usr/share/smanager/conf/srvmngr.conf" to override it. |