++ Local port

This commit is contained in:
2026-02-17 14:34:37 +01:00
parent be1d40d64f
commit ea9d757b80
3 changed files with 7 additions and 5 deletions

4
.env
View File

@@ -18,5 +18,5 @@ NEXTERM_DATA_DIR=./nexterm_data
NEXTERM_TZ=Europe/Rome
# Chiave di cifratura usata da Nexterm (obbligatoria)
# Sostituisci con una stringa lunga e casuale.
NEXTERM_ENCRYPTION_KEY=change-this-to-a-long-random-secret
# Deve essere una stringa esadecimale di 64 caratteri (32 byte).
NEXTERM_ENCRYPTION_KEY=4c4c18e819265ede62496d41dc6511ee4ec107ed0f6115a5d60856ed08ca933e

View File

@@ -27,11 +27,13 @@ Variabili principali:
- `NEXTERM_TZ`: timezone del container
- `NEXTERM_ENCRYPTION_KEY`: chiave di cifratura obbligatoria per Nexterm
> `NEXTERM_ENCRYPTION_KEY` deve essere una stringa lunga e casuale.
> `NEXTERM_ENCRYPTION_KEY` deve essere una stringa esadecimale di **64 caratteri**.
> Esempio rapido (PowerShell):
```powershell
[Convert]::ToBase64String((1..48 | ForEach-Object { Get-Random -Maximum 256 }))
$bytes = New-Object byte[] 32
[System.Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes)
($bytes | ForEach-Object { $_.ToString('x2') }) -join ''
```
## Avvio

View File

@@ -4,7 +4,7 @@ services:
container_name: ${NEXTERM_CONTAINER_NAME}
restart: ${NEXTERM_RESTART_POLICY}
ports:
- "${NEXTERM_PORT_HOST}:${NEXTERM_PORT_CONTAINER}"
- "${NEXTERM_PORT_HOST}:6989"
volumes:
- ${NEXTERM_DATA_DIR}:/app/data
environment: