Fix: add phonebook_contacts to database schema and migrations; harden install script
This commit is contained in:
1 parent
fb0997e759
commit
563a01e3c3
4 files changed
+68
-6
No files matched your search
+6
-4
@@ -304,6 +304,11 @@ if [ -z "$PHP_SOCK" ]; then
|
||||
PHP_SOCK="/run/php/php8.4-fpm.sock"
|
||||
fi
|
||||
|
||||
# Préparation des répertoires Nginx et activation de nexus-pbx
|
||||
mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
ln -sf /etc/nginx/sites-available/nexus-pbx /etc/nginx/sites-enabled/nexus-pbx
|
||||
|
||||
# Application de la configuration Nginx complète (Ports 80, 8080, 8443)
|
||||
php -r '
|
||||
require_once "/var/www/nexus-pbx/src/Database.php";
|
||||
@@ -313,9 +318,6 @@ $st = $db->query("SELECT admin_https_port, certbot_strict_port80 FROM settings W
|
||||
App\FirewallManager::applyNginxConfig((int)($st["admin_https_port"] ?? 8443), (int)($st["certbot_strict_port80"] ?? 0));
|
||||
'
|
||||
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
ln -sf /etc/nginx/sites-available/nexus-pbx /etc/nginx/sites-enabled/nexus-pbx
|
||||
|
||||
# Filtre Fail2ban Asterisk
|
||||
cat << 'EOF' > /etc/fail2ban/filter.d/asterisk.conf
|
||||
[Definition]
|
||||
@@ -391,4 +393,4 @@ systemctl restart cron && systemctl enable cron
|
||||
|
||||
# Exécution immédiate de la bannière console
|
||||
clear || true
|
||||
/usr/local/bin/nexus-banner
|
||||
/usr/local/bin/nexus-banner --force || true
|
||||
Reference in new issue
Block a user