mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
4d097daceb
By default, https will be enabled in production in OpenProject 12.2. Right now, a separate flag exists called rails_force_ssl that needs to be controlled separately, but the two settings are intermingled. This PR fixes this so that: HTTPS setting controls the secure cookies and generating links with https throughout the application HSTS setting is only active by default when HTTPS is enabled and controls the HSTS headers as well as the HTTP->HTTPS request upgrade for transport-security.