Пример #1
0
 if ($conf['nginx']['installed'] == true) {
     swriteln('Configuring nginx');
     $inst->configure_nginx();
 }
 //** Configure Vlogger
 swriteln('Configuring Vlogger');
 $inst->configure_vlogger();
 //** Configure apps vhost
 swriteln('Configuring Apps vhost');
 $inst->configure_apps_vhost();
 //* Configure Firewall
 if ($conf['ufw']['installed'] == true) {
     //* Configure Ubuntu Firewall
     $conf['services']['firewall'] = true;
     swriteln('Configuring Ubuntu Firewall');
     $inst->configure_ufw_firewall();
 } else {
     //* Configure Bastille Firewall
     $conf['services']['firewall'] = true;
     swriteln('Configuring Bastille Firewall');
     $inst->configure_bastille_firewall();
 }
 //* Configure Fail2ban
 if ($conf['fail2ban']['installed'] == true) {
     swriteln('Configuring Fail2ban');
     $inst->configure_fail2ban();
 }
 /*
 if($conf['squid']['installed'] == true) {
 	$conf['services']['proxy'] = true;
 	swriteln('Configuring Squid');