[MIGRATE] Migrazione a nis2.agile.software
- Tutti i riferimenti nis2.certisource.it → nis2.agile.software - Apache vhost HTTP nis2.agile.software attivo su Hetzner - Script setup-nis2-agile-software.sh: certbot SSL + redirect da vecchio dominio - .env server: APP_URL aggiornato a https://nis2.agile.software - CLAUDE.md, docs commerciali, integrazioni, API docs aggiornati DNS da aggiungere in Cloudflare: nis2.agile.software A 135.181.149.254 (proxy OFF) Poi eseguire: bash /opt/devenv/scripts/setup-nis2-agile-software.sh Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
0fcc69ee85
commit
07c1a71685
+2
-2
@@ -37,8 +37,8 @@ define('IS_WEB', !IS_CLI);
|
||||
|
||||
// URL base API — rileva automaticamente ambiente
|
||||
if (IS_CLI) {
|
||||
// Sul server Hetzner: Apache serve /var/www/nis2-agile su https://nis2.certisource.it/
|
||||
define('API_BASE', getenv('NIS2_API_BASE') ?: 'https://nis2.certisource.it/api');
|
||||
// Sul server Hetzner: Apache serve /var/www/nis2-agile su https://nis2.agile.software/
|
||||
define('API_BASE', getenv('NIS2_API_BASE') ?: 'https://nis2.agile.software/api');
|
||||
} else {
|
||||
// In web: usa URL relativo allo stesso host
|
||||
$proto = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
|
||||
Reference in New Issue
Block a user