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

fixed and updated ee configuration

Markus Kahld624f795cbc3
diff --git a/app/helpers/enterprise_trial_helper.rb b/app/helpers/enterprise_trial_helper.rb
index e63a87094a4..7e4f4dc4d83 100644
--- a/app/helpers/enterprise_trial_helper.rb
+++ b/app/helpers/enterprise_trial_helper.rb
@@ -6,10 +6,13 @@ module EnterpriseTrialHelper
end
def chargebee_content_security_policy
+ script_src = %w(js.chargebee.com)
+ default_src = script_src + ["#{OpenProject::Configuration.enterprise_chargebee_site}.chargebee.com"]
+
append_content_security_policy_directives(
- script_src: %w(js.chargebee.com),
- style_src: %w(js.chargebee.com openproject-enterprise-test.chargebee.com),
- frame_src: %w(js.chargebee.com openproject-enterprise-test.chargebee.com)
+ script_src: script_src,
+ style_src: default_src,
+ frame_src: default_src
)
end
diff --git a/app/views/enterprises/_info.html.erb b/app/views/enterprises/_info.html.erb
index 6850d280c2c..1bba26122fa 100644
--- a/app/views/enterprises/_info.html.erb
+++ b/app/views/enterprises/_info.html.erb
@@ -28,7 +28,7 @@ See docs/COPYRIGHT.rdoc for more details.
++#%>
<% content_for :header_tags do %>
<script src="<%= OpenProject::Static::Links.links[:chargebee][:href] %>"
- data-cb-site="openproject-enterprise-test">
+ data-cb-site="<%= OpenProject::Configuration.enterprise_chargebee_site %>">
</script>
<% end %>
@@ -41,7 +41,7 @@ See docs/COPYRIGHT.rdoc for more details.
<a href="#"
class="button -highlight-inverted"
data-cb-type="checkout"
- data-cb-plan-id="enterprise-edition---annual-user-license">
+ data-cb-plan-id="<%= OpenProject::Configuration.enterprise_plan %>">
<%= t('admin.enterprise.book_now') %>
</a>
diff --git a/lib/open_project/configuration.rb b/lib/open_project/configuration.rb
index 0ca678894e6..dcd28c45b11 100644
--- a/lib/open_project/configuration.rb
+++ b/lib/open_project/configuration.rb
@@ -190,8 +190,10 @@ module OpenProject
# set to n >= 1 to enable n times the default tracing
'sentry_frontend_trace_factor' => 0,
- # Allow connection to Augur
+ # Allow connections for trial creation and booking
'enterprise_trial_creation_host' => 'https://augur.openproject.com',
+ 'enterprise_chargebee_site' => 'openproject-enterprise',
+ 'enterprise_plan' => 'enterprise-on-premises---euro---1-year',
# Allow override of LDAP options
'ldap_auth_source_tls_options' => nil,