mirror of
https://github.com/hansjone/netx.git
synced 2026-10-15 14:43:21 +08:00
UME TLS off by default on Linux and Windows; truthful admin login hints.
- Deployments are on internal networks with self-signed UME certificates: installers write NETX_UME_VERIFY_TLS=false and NETX_ALLOW_INSECURE_DEFAULTS=1 when absent (Linux also on update), so binding 0.0.0.0 no longer stops NetX at the startup security check. Admin password and JWT secret stay unique per install. - Linux: after install, check app_user to report whether the generated initial password applies or the admin already exists (reused external DB); new 'netxctl admin-password'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b0b64ba07d
commit
eb0eccdffe
7 changed files with 95 additions and 21 deletions
|
|
@ -63,6 +63,11 @@ $values = @{}
|
|||
$values["NETX_DB_MODE"] = $DbMode
|
||||
$values["NETX_HOST"] = "127.0.0.1"
|
||||
$values["NETX_PORT"] = "8890"
|
||||
# Internal networks: UME uses self-signed certificates. Keep TLS verification off and
|
||||
# waive that startup check explicitly, so switching NETX_HOST to 0.0.0.0 later does
|
||||
# not stop NetX (same defaults as the Linux installer). Existing values are kept.
|
||||
if (-not $existing.ContainsKey("NETX_UME_VERIFY_TLS")) { $values["NETX_UME_VERIFY_TLS"] = "false" }
|
||||
if (-not $existing.ContainsKey("NETX_ALLOW_INSECURE_DEFAULTS")) { $values["NETX_ALLOW_INSECURE_DEFAULTS"] = "1" }
|
||||
# Absolute UI path when present; else relative for source trees.
|
||||
$distAbs = Join-Path $prog "web\dist"
|
||||
if (Test-Path (Join-Path $distAbs "index.html")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue