Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Rename FORCE_SSL to HSTS in packager setup

Oliver Günther506daae7e6e2
diff --git a/lib/tasks/packager.rake b/lib/tasks/packager.rake
index e830d790e81..5d48d62f35a 100644
--- a/lib/tasks/packager.rake
+++ b/lib/tasks/packager.rake
@@ -71,15 +71,15 @@ namespace :packager do
# Allow setting only HTTPS setting without enabling FORCE__SSL
# due to external proxy configuration. This avoids activation of HSTS headers.
shell_setup(['config:set', "OPENPROJECT_HTTPS=true"])
- shell_setup(['config:set', "OPENPROJECT_RAILS__FORCE__SSL=false"])
+ shell_setup(['config:set', "OPENPROJECT_HSTS=false"])
elsif ENV['SERVER_PROTOCOL_FORCE_HTTPS'] || ENV.fetch('SERVER_PROTOCOL', Setting.protocol) == 'https'
# Allow overriding the protocol setting from ENV
# to allow instances where SSL is terminated earlier to respect that setting
shell_setup(['config:set', "OPENPROJECT_HTTPS=true"])
- shell_setup(['config:set', "OPENPROJECT_RAILS__FORCE__SSL=true"])
+ shell_setup(['config:set', "OPENPROJECT_HSTS=true"])
else
shell_setup(['config:set', "OPENPROJECT_HTTPS=false"])
- shell_setup(['config:set', "OPENPROJECT_RAILS__FORCE__SSL=false"])
+ shell_setup(['config:set', "OPENPROJECT_HSTS=false"])
end
# Run customization step, if it is defined.