2 Commits
Author SHA1 Message Date
Han Ming 7628860532 Allow 301 for "Redirect all domains to" (#2562)
Add an optional redirectDomainStatusCode (301 or 302) to the app
definition. The default server block template returns it instead of a
hard-coded 302. Apps without the field keep redirecting with 302.

Clients that do not send the field, such as the current caprover-api
updateConfigAndSave, keep the stored value instead of resetting it.

Refs #1857
2026-11-28 08:27:48 -08:00
85929acd32 Redirect to https when the redirect domain has SSL (#2557)
Fixes #1858

Co-authored-by: Donald Murillo <dev@example.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:20:56 -08:00