initial commit of file from CVS for smeserver-manager on Fri Mar 22 14:54:28 AEDT 2024

This commit is contained in:
Trevor Batley
2024-03-22 14:54:28 +11:00
parent eed507434f
commit db139626ba
242 changed files with 25308 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
\{
# configuration file for Mojolicious Server-Manager2 application
#

View File

@@ -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 .= "],";
}

View File

@@ -0,0 +1 @@
theme => '{ $smanager{'Theme'} || 'default' }',

View File

@@ -0,0 +1,2 @@
# session timeout
timeout => '{ $smanager{'Timeout'} || 300 }',

View File

@@ -0,0 +1,4 @@
# password reset disabled by default
pwdreset => { ($smanager{'PwdReset'} eq 'enabled' ? '1' : '0') || '0' },
# reset delay in hours
pwdreset_delay => 2,

View File

@@ -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'
\},

View File

@@ -0,0 +1,2 @@
# is js-jquery available
hasJquery => { -f '/usr/share/smanager/themes/default/public/js/jquery.min.js' ? '1' : '0'; },

View File

@@ -0,0 +1,5 @@
modules_dir => 'lib/SrvMngr/Controller',
webapp => 'smanager',
mode => 'production',
debug => 0,
\}