Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
git push: informational links to explorer contain wrong httpd addresses
intelfx@cain opened 3 months ago

When pushing to rad remote, Radicle sometimes prints some informational links to the Explorer instance configured on the node, in a grey color:

$ git push-work rad
+ git -c 'remote.rad.push=+refs/heads/work/*' push rad
✓ Synced with 3 seed(s)

  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/46e514dcd845e74846c96e2631ae94e371735bb7
  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/651dce2832ada9726cc202ed3bb69c37846b63a8
  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/e2887c6e47debe2ee091a6098711dee1c0e1ba4f
  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/7e410a02ff16be29867183e1ccc691e86aad9769
  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/b50cc0204bf08bce186f4cdd261148033fb1f0ec
  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/7e6707a4e943a2471cd9cb4cd4104d778592a8e6
  http://rad.localhost/nodes/stratofortress.tailbefcf.ts.net/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/7d313e2e2071aa3b78ce8ef28c0b73ffb06ff0ff

To rad://z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/z6MkqbVudjUcuxUmwWfW6U886CnhoX5wmkEDsAXju9F9UBAo
 + b6e5ea13...7e6707a4 work/httpd-git-namespace -> work/httpd-git-namespace (forced update)
 * [new branch]        work/dynamic-config -> work/dynamic-config
 * [new branch]        work/httpd-git-namespace-0.23.0 -> work/httpd-git-namespace-0.23.0
 * [new branch]        work/my -> work/my
 * [new branch]        work/prior/boards-config -> work/prior/boards-config
 * [new branch]        work/prior/dynamic-config-via-file -> work/prior/dynamic-config-via-file
 * [new branch]        work/prior/virtual-module-instead-of-config -> work/prior/virtual-module-instead-of-config

The rad.localhost comes from my node config.json, so this part is expected:

{
  "publicExplorer": "http://rad.localhost/nodes/$host/$rid$path",
  ...
}

The `stratofortress.tailbefcf.ts.net` part supposedly comes from my persistent
connection list and/or preferred seeds list -- this is my always-on seed node,
as reached via Tailscale (because it is more reliable than going over WAN):

```json
{
  ...,
  "preferredSeeds": [
    "z6MktFcCMdoYSiShd8m2m5FodYw6Qo7V2pUt14tUb7wmSkye@stratofortress.tailbefcf.ts.net:8776",
    ...
  ],
  ...
  "node": {
    ...,
    "connect": [
      "z6MktFcCMdoYSiShd8m2m5FodYw6Qo7V2pUt14tUb7wmSkye@stratofortress.tailbefcf.ts.net:8776"
    ],
    ...
  },
  ...
}

However, the httpd does not live on the same domain because it is difficult to disentangle it from other web resources, and my Explorer only knows about this node via a different domain (on WAN):

{
  "nodes": {
    ...
  },
  "preferredSeeds": [
    ...
    {
      "hostname": "rad.vigil.intelfx.name",
      "port": 443,
      "scheme": "https"
    },
    ...
  ]
}

I wonder if there is any way to reconcile the two? Or, if not, then perhaps it should be documented than if you want the auto-generated explorer links to work, then the httpd must always live on the same domain as the node itself?