initial commit of file from CVS for smeserver-manager on Fri Mar 22 14:54:28 AEDT 2024
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
\{
|
||||
# configuration file for Mojolicious Server-Manager2 application
|
||||
#
|
@@ -0,0 +1,8 @@
|
||||
{
|
||||
my @secrets = split /,/, $smanager{'Secrets'};
|
||||
$OUT .= " secrets => ['";
|
||||
if ( $secrets[0] ) { $OUT .= "$secrets[0]'"; }
|
||||
if ( $secrets[1] ) { $OUT .= ",'$secrets[1]'"; }
|
||||
if ( $secrets[2] ) { $OUT .= ",'$secrets[2]'"; }
|
||||
$OUT .= "],";
|
||||
}
|
@@ -0,0 +1 @@
|
||||
theme => '{ $smanager{'Theme'} || 'default' }',
|
@@ -0,0 +1,2 @@
|
||||
# session timeout
|
||||
timeout => '{ $smanager{'Timeout'} || 300 }',
|
@@ -0,0 +1,4 @@
|
||||
# password reset disabled by default
|
||||
pwdreset => { ($smanager{'PwdReset'} eq 'enabled' ? '1' : '0') || '0' },
|
||||
# reset delay in hours
|
||||
pwdreset_delay => 2,
|
@@ -0,0 +1,16 @@
|
||||
hypnotoad => \{
|
||||
## adresses and ports listened
|
||||
listen => ['http://127.0.0.1:{$smanager{'TCPPort'} || 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'
|
||||
\},
|
@@ -0,0 +1,2 @@
|
||||
# is js-jquery available
|
||||
hasJquery => { -f '/usr/share/smanager/themes/default/public/js/jquery.min.js' ? '1' : '0'; },
|
@@ -0,0 +1,5 @@
|
||||
modules_dir => 'lib/SrvMngr/Controller',
|
||||
webapp => 'smanager',
|
||||
mode => 'production',
|
||||
debug => 0,
|
||||
\}
|
Reference in New Issue
Block a user