fix(server): public ports as settings, container port lock and client address; clients default to 8443 and name non-Chronos servers

The owner's Uploader could not connect: the panel showed the container's
listening ports (8080/8443) as if clients used them, the public ports were
only environment variables (CHRONOS_PUBLIC_HTTP_PORT not even in the Unraid
template), and the clients mapped a bare host to 443, where another service
answered.

- Public HTTP/HTTPS ports are settings (server.json, or locked by
  CHRONOS_PUBLIC_*) and apply at once; ServerSettingsDto gains appended
  PublicHttpPort, PublicHttpsPort and InContainer members.
- In a container the listening ports are fixed by the template: locked in the
  panel, and saved values from earlier versions are ignored with a warning.
- Settings > Network and TLS shows the client address with a Copy button; the
  discovery tooltip says a container needs network type Host.
- ChronosAddress (shared by Chronos and the Uploader): no scheme and no port is
  https on 8443, https:// keeps 443, a typed port is kept, IPv6 is bracketed.
- GetInfoAsync throws NotChronosServerException for answers that are not a
  Chronos server; another service's certificate is never offered for trust
  and no credentials are sent to it. Both clients name the address asked.
- Unraid template, compose file, user guide, README, BRIEF, DECISIONS,
  CHANGELOG (with an Unraid upgrade note) and ARCHITECTURE updated; en/it
  strings added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-04 09:53:49 +01:00
1 parent 9b24cf74fc
commit 369e754bec
33 files changed
+862 -82

No files matched your search

+13 -2
View File
@@ -786,16 +786,23 @@
<data name="Admin.Sequence.TooManyTags" xml:space="preserve"><value>A sequence has at most 50 tags.</value><comment>long</comment></data>
<data name="Admin.Sequence.Unrate.Tip" xml:space="preserve"><value>Rated {0} out of 5; choose it again to clear the rating</value></data>
<data name="Admin.Settings.About" xml:space="preserve"><value>About</value></data>
<data name="Admin.Settings.AddressCopied" xml:space="preserve"><value>Address copied.</value></data>
<data name="Admin.Settings.AuditRetentionDays" xml:space="preserve"><value>Keep audit (days)</value></data>
<data name="Admin.Settings.AuditRetentionDays.Tip" xml:space="preserve"><value>Age limit of the Audit log clean-up schedule: older audit entries are deleted; 0: kept forever</value></data>
<data name="Admin.Settings.ChunkSizeMib" xml:space="preserve"><value>Chunk size (MiB)</value></data>
<data name="Admin.Settings.ChunkSizeMib.Tip" xml:space="preserve"><value>Size of each upload chunk; smaller chunks resume faster on poor links</value></data>
<data name="Admin.Settings.ClientAddress" xml:space="preserve"><value>Client address</value></data>
<data name="Admin.Settings.ClientAddress.Tip" xml:space="preserve"><value>Type this in Chronos and in the Uploader to connect to this server</value></data>
<data name="Admin.Settings.ConsoleLogLevel" xml:space="preserve"><value>Console level</value></data>
<data name="Admin.Settings.ConsoleLogLevel.Tip" xml:space="preserve"><value>Least severe level written to the console, the container's log</value></data>
<data name="Admin.Settings.ContainerHttpPort" xml:space="preserve"><value>Container HTTP port</value></data>
<data name="Admin.Settings.ContainerHttpsPort" xml:space="preserve"><value>Container HTTPS port</value></data>
<data name="Admin.Settings.ContainerPort.Tip" xml:space="preserve"><value>Port inside the container, fixed by its template; the host maps it to the port clients use, which goes in the public port below</value></data>
<data name="Admin.Settings.CopyAddress.Tip" xml:space="preserve"><value>Copy the client address</value></data>
<data name="Admin.Settings.DiagnosticsLogMb" xml:space="preserve"><value>Diagnostics logs (MB)</value></data>
<data name="Admin.Settings.DiagnosticsLogMb.Tip" xml:space="preserve"><value>How much of the end of each log file the diagnostics zip includes</value></data>
<data name="Admin.Settings.Discovery" xml:space="preserve"><value>LAN discovery</value></data>
<data name="Admin.Settings.Discovery.Tip" xml:space="preserve"><value>Announce this server on the local network so clients find it</value></data>
<data name="Admin.Settings.Discovery.Tip" xml:space="preserve"><value>Announce this server on the local network so clients find it; a container needs network type Host (in Bridge mode the announcements stay inside Docker: type the client address)</value></data>
<data name="Admin.Settings.Fingerprint" xml:space="preserve"><value>Fingerprint</value></data>
<data name="Admin.Settings.Fingerprint.Tip" xml:space="preserve"><value>SHA-256 of the certificate; clients ask the user to compare it once</value></data>
<data name="Admin.Settings.HttpPort" xml:space="preserve"><value>HTTP port</value></data>
@@ -840,8 +847,12 @@
<data name="Admin.Settings.PriorityQueue.Tip" xml:space="preserve"><value>On: a job of a higher level pauses the running one without asking, and that one resumes by itself afterwards. Off: jobs wait their turn</value></data>
<data name="Admin.Settings.ProxyBypassed" xml:space="preserve"><value>Not via proxy</value></data>
<data name="Admin.Settings.ProxyBypassed.Tip" xml:space="preserve"><value>TLS mode is Reverse proxy, but this page did not come through a trusted proxy over HTTPS. Open it through your proxy, or add the proxy's address to CHRONOS_TRUSTED_PROXIES.</value></data>
<data name="Admin.Settings.PublicHttpPort" xml:space="preserve"><value>Public HTTP port</value></data>
<data name="Admin.Settings.PublicHttpPort.Tip" xml:space="preserve"><value>Host port clients use for HTTP when it differs from the HTTP port, as a container maps it; empty: the HTTP port</value></data>
<data name="Admin.Settings.PublicHttpsPort" xml:space="preserve"><value>Public HTTPS port</value></data>
<data name="Admin.Settings.PublicHttpsPort.Tip" xml:space="preserve"><value>Host port clients use for HTTPS when it differs from the HTTPS port, as a container maps it; empty: the HTTPS port</value></data>
<data name="Admin.Settings.Restart" xml:space="preserve"><value>Restart required</value></data>
<data name="Admin.Settings.Restart.Tip" xml:space="preserve"><value>Saved ports, TLS or chunk size apply after a restart</value></data>
<data name="Admin.Settings.Restart.Tip" xml:space="preserve"><value>Saved listening ports, TLS or chunk size apply after a restart</value></data>
<data name="Admin.Settings.Rotation.Daily" xml:space="preserve"><value>Daily</value></data>
<data name="Admin.Settings.Rotation.Hourly" xml:space="preserve"><value>Hourly</value></data>
<data name="Admin.Settings.Server" xml:space="preserve"><value>Server</value></data>
+1
View File
@@ -75,6 +75,7 @@
<data name="Server.Error.LastAdmin" xml:space="preserve"><value>The last administrator cannot be removed or disabled.</value><comment>long</comment></data>
<data name="Server.Error.MethodNotAllowed" xml:space="preserve"><value>This method is not allowed here.</value><comment>long</comment></data>
<data name="Server.Error.NestedTarget" xml:space="preserve"><value>A new folder would lie inside the folder of another sequence.</value><comment>long</comment></data>
<data name="Server.Error.NotChronosAt" xml:space="preserve"><value>No Chronos server answers at {0}; check the port (the admin panel's Settings › Network and TLS shows the client address).</value><comment>long</comment></data>
<data name="Server.Error.NotEnoughSpace" xml:space="preserve"><value>The archive's volume lacks the space the conversion needs.</value><comment>long</comment></data>
<data name="Server.Error.NotFound" xml:space="preserve"><value>Not found.</value><comment>long</comment></data>
<data name="Server.Error.NotChronos" xml:space="preserve"><value>That address is not a Chronos Server.</value><comment>long</comment></data>
+1
View File
@@ -24,6 +24,7 @@
<data name="Uploader.Connect.Error.Failed" xml:space="preserve"><value>The server reported an error.</value><comment>long</comment></data>
<data name="Uploader.Connect.Error.InvalidAddress" xml:space="preserve"><value>Enter an address such as https://nas.local:8443.</value><comment>long</comment></data>
<data name="Uploader.Connect.Error.NotChronos" xml:space="preserve"><value>This address is not a Chronos Server.</value><comment>long</comment></data>
<data name="Uploader.Connect.Error.NotChronosAt" xml:space="preserve"><value>No Chronos server answers at {0}; check the port (the admin panel's Settings › Network and TLS shows the client address).</value><comment>long</comment></data>
<data name="Uploader.Connect.Error.Unreachable" xml:space="preserve"><value>The server did not answer.</value><comment>long</comment></data>
<data name="Uploader.Connect.Error.Untrusted" xml:space="preserve"><value>The server certificate was not trusted.</value><comment>long</comment></data>
<data name="Uploader.Connect.Found" xml:space="preserve"><value>Found</value></data>