Settings: the servers settings (install defaults, port range, central IP) are saved
Found in the VM test: they were never added to the known settings, so saving them was silently ignored and every install got the template's defaults. A test now saves and reads them back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -71,6 +71,13 @@ const DEFAULTS = {
|
||||
invoice_footer: 'Thank you for using Cross Events.',
|
||||
// Replies to billing emails go here (blank: business_email).
|
||||
billing_reply_to: '',
|
||||
// Servers and the agent (2.1.0). The port list hands out ports in this range (match frps's
|
||||
// allow_ports); install_defaults is the .env defaults layer (JSON, NAME → value); the central
|
||||
// server's IP is used to check a new install's DNS.
|
||||
port_range_start: '20000',
|
||||
port_range_end: '29999',
|
||||
install_defaults: '{"HUB_URL":"https://hub.crosscode.co.za"}',
|
||||
central_server_ip: '',
|
||||
};
|
||||
|
||||
// Stored encrypted and never sent to the browser: only "is one saved" (<key>_set).
|
||||
|
||||
Reference in New Issue
Block a user