Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: Hosted Frontend, Tailscale Integration & SSH Lancher #2361

Mergedjuliusmarmingemerged 76 commits intomain fromrefs/pull/2361/headmerged by juliusmarminge View on GitHub

Showing 119 changed files with 80 additions and 0 deletions (loading 118).

x
0 of 119 viewed, 119 left
80 additions and 0 deletions.docs/remote-architecture.mdModified
View file
@@ -93,6 +93,8 @@
​
A known environment may or may not know the target `environmentId` before first successful connect.
​
+In the hosted web app, known environments are browser-local. A hosted pairing URL can create the saved entry, but it does not give the hosted app a server-side control plane or a copy of the session state.
+​
### AccessEndpoint
​
An `AccessEndpoint` is one concrete way to reach a known environment.
@@ -108,6 +110,67 @@
​
The environment stays the same. Only the access path changes.
​
+### AdvertisedEndpoint
+​
+An `AdvertisedEndpoint` is a server or desktop-authored candidate endpoint for an environment. It is how the backend tells the client which URLs may be useful for pairing and reconnecting.
+​
+`AdvertisedEndpoint` is deliberately narrower than the full access model:
+​
+- it describes a concrete HTTP and WebSocket base URL pair
+- it can mark the endpoint as default, available, or unavailable
+- it includes reachability hints such as loopback, LAN, private, public, or tunnel
+- it includes compatibility hints such as whether the endpoint can be used from the hosted HTTPS app
+​
+Clients should treat advertised endpoints as hints, not as proof that a route works from the current device. The final connection attempt still decides whether the endpoint is reachable.
+​
+The UI presents one default advertised endpoint in the network-access summary and keeps the rest behind an expandable advanced list. The default controls pairing QR codes and primary copy actions. Users can override it, but that override is a UI preference, not backend configuration.
+​
+Persist the override by stable endpoint kind rather than raw URL whenever possible. For example, a LAN endpoint should be stored as the desktop LAN endpoint preference, not as `192.168.x.y`, because the address can change when the user switches networks. Provider endpoints should use provider-specific stable keys such as Tailscale IP or Tailscale MagicDNS HTTPS. Custom endpoints may fall back to their concrete identity.