netgescon-day0/config/distribution.php

37 lines
1.6 KiB
PHP

<?php
return [
// Base URL del server che distribuisce i pacchetti di aggiornamento.
'update_url' => env('NETGESCON_UPDATE_URL', ''),
// Canale di default per il nodo (free o licensed).
'default_channel' => env('NETGESCON_UPDATE_CHANNEL', 'free'),
// Identificativo nodo opzionale, utile per audit lato server update.
'node_code' => env('NETGESCON_NODE_CODE', ''),
// Credenziali lato client per canale licensed.
'licensed_code' => env('NETGESCON_LICENSED_CODE', ''),
'licensed_auth' => env('NETGESCON_LICENSED_AUTH', ''),
// Credenziali lato server: lista "code:auth" separata da virgola.
// Esempio: NODEA:abc123,NODEB:def456
'licensed_pairs' => env('NETGESCON_LICENSED_PAIRS', ''),
// Percorso locale dove il server update espone manifest e pacchetti.
'storage_root' => storage_path('app/distribution'),
// Timeout client per check/download.
'http_timeout_seconds' => (int) env('NETGESCON_UPDATE_HTTP_TIMEOUT', 60),
// Backup pre-update: abilita upload su Google Drive solo se richiesto dal nodo.
'preupdate_drive_enabled' => (bool) env('NETGESCON_PREUPDATE_DRIVE_ENABLED', false),
// Se true, l'update fallisce quando la copia Drive non puo essere completata.
'preupdate_require_drive' => (bool) env('NETGESCON_PREUPDATE_REQUIRE_DRIVE', false),
// Override opzionale DNS per richieste update (formato CSV host:port:ip).
// Esempio: updates.netgescon.it:443:192.168.0.53
'http_resolve' => env('NETGESCON_UPDATE_RESOLVE', ''),
];