Skip to content

Add reverse proxy options to generated XO configuration - #372

Open
m0canu1 wants to merge 2 commits into
ronivay:masterfrom
m0canu1:add-reverse-proxy-options
Open

Add reverse proxy options to generated XO configuration#372
m0canu1 wants to merge 2 commits into
ronivay:masterfrom
m0canu1:add-reverse-proxy-options

Conversation

@m0canu1

@m0canu1 m0canu1 commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Adds three optional xo-install.cfg settings for Xen Orchestra deployments behind a reverse proxy:

  • PUBLIC_URL
  • USE_FORWARDED_HEADERS
  • COOKIE_SECURE

When CONFIGUPDATE=true, the installer writes the selected values to the generated xo-server configuration:

  • http.publicUrl
  • http.useForwardedHeaders
  • http.cookies.secure

Motivation

XO supports these settings for reverse-proxy and TLS-termination deployments. Exposing them in xo-install.cfg lets users retain installer-managed configuration instead of manually editing config.toml after updates.

The change is proxy-agnostic; it adds no Caddy, nginx, or Traefik-specific behavior.

Security

USE_FORWARDED_HEADERS=true is opt-in. It must be enabled only when xo-server’s HTTP listener is not directly reachable by untrusted clients, because forwarded headers can otherwise be spoofed.

Scope

I am aware of #265 and the preference to avoid surfacing every xo-server setting. This proposal intentionally stays limited to the three settings needed for the common reverse-proxy/TLS-termination deployment pattern.

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.

1 participant