Skip to content

Pick the reverse proxy when deploying - #94

Merged
liamdevss merged 1 commit into
mainfrom
proxy-choice
Nov 16, 2026
Merged

liamdevss merged 1 commit into
mainfrom
proxy-choice

Conversation

@liamdevss

Copy link
Copy Markdown
Contributor

Closes #92. Goes with serveroshq/daemon#20.

When a deploy has a domain, the deploy dialog now has a Reverse proxy dropdown: Caddy, nginx, Apache or Traefik. It starts on whatever the machine uses. Picking another one shows that deploying moves every site on the machine over and stops the old proxy, since only one of them can have ports 80 and 443.

Panel

  • machines.proxy: what serves the machine's domains, from the daemon's hello and from each finished deploy.
  • /machines/{machine}/deploy/taken also returns proxy and canChooseProxy, which is how the dialog learns both when it opens.
  • A deploy sends proxy only when it differs from the machine's current one and there's a domain. Machines that never reported a proxy count as Caddy.
  • Gated on daemon.proxy_choice_since (0.1.1-pre.40, the next daemon release). Older daemons don't get the dropdown, and asking for a proxy through the API or MCP is turned down with "too old to switch reverse proxy".
  • deploy_from_git and deploy_template (MCP) take proxy too.
  • Copy follows the proxy: the wildcard hint says subdomains are plain HTTP on nginx, Apache and Traefik, and the done step names the proxy that gets the certificate. Translations added for es, de and hi.
  • A proxy that won't start is explained by name, with the right systemctl command.

Checked

  • New ReverseProxyChoiceTest (10 tests), and ServiceTemplateTest updated for the two new fields on the taken endpoint.
  • Full tests/ suite: one failure, SyncDaemonReleasesTest, which also fails without this change in my local setup (local .env release URL).
  • Pint, PHPStan on the changed files, vp check, vue-tsc.
  • Not checked: the dropdown rendered in a browser.

@liamdevss
liamdevss requested a review from a team as a code owner November 16, 2026 19:04
@liamdevss
liamdevss merged commit aa425eb into main Nov 16, 2026
7 checks passed
@liamdevss
liamdevss deleted the proxy-choice branch November 16, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow using custom reverse proxies (NGINX, Apache, Traefik, etc.)

1 participant