You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Allow custom port configuration for tailscale serve #516
Currently, the plugin startup flow will try to run something like tailscale serve --bg --https=? http://127.0.0.1:7317 with one of the following ports for the HTTPS port param:
By default, this captures port 443, which is the general HTTPS port.
I like to keep port 443 free for short-lived funnels or my own custom workflows. Since herdr (and consequently herdr-web-ui is meant to be long-lived / permanent, it will almost certainly block 443 on my machine in the tailnet in perpetuity.
Proposal
Having a TAILSCALE_SERVE_PORT config option would be great to have a dedicated https exposed port that I can reliably assign to herdr-web-ui.
If the TAILSCALE_SERVE_PORT is occupied, then the plugin can fallback to the hardcoded HTTPS_PORTS list, similar to how it's done while looking for a local port for the web-ui service itself.
Thanks for the report. #1433 adds HERDR_WEB_TAILSCALE_HTTPS_PORT: the installer and the phone step publish the app on that HTTPS port only. If another service already holds it, they stop and say so rather than falling back to 8443, because the fallback would move the address an installed app opens, which is the case you hit.
Two notes on the current behaviour:
443 is taken only when the installer (or bun scripts/plugin.ts phone) runs. The server and herdr startup only read tailscale serve status.
Moving an existing address needs no herdr restart or serve reset: run tailscale serve --https=443 off, then tailscale serve --bg --https=9443 http://127.0.0.1:7317. The app picks up the new address. The phone app has to be installed again from it, since its origin changes.
Activity
devswha commentedon Oct 19, 2026
Thanks for the report. #1433 adds
HERDR_WEB_TAILSCALE_HTTPS_PORT: the installer and the phone step publish the app on that HTTPS port only. If another service already holds it, they stop and say so rather than falling back to 8443, because the fallback would move the address an installed app opens, which is the case you hit.Two notes on the current behaviour:
bun scripts/plugin.ts phone) runs. The server and herdr startup only readtailscale serve status.serve reset: runtailscale serve --https=443 off, thentailscale serve --bg --https=9443 http://127.0.0.1:7317. The app picks up the new address. The phone app has to be installed again from it, since its origin changes.feat(phone): let HERDR_WEB_TAILSCALE_HTTPS_PORT name the tailscale se…