From d229dda3cb1309838f79edb24ce150caddb33438 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Sat, 23 Mar 2024 07:45:40 +0100 Subject: [PATCH] dmsf support for redmine --- .../templates/redmine/config/additional_environment.rb.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/redmine/templates/redmine/config/additional_environment.rb.j2 b/roles/redmine/templates/redmine/config/additional_environment.rb.j2 index baf0fcc..2b27693 100644 --- a/roles/redmine/templates/redmine/config/additional_environment.rb.j2 +++ b/roles/redmine/templates/redmine/config/additional_environment.rb.j2 @@ -21,6 +21,11 @@ config.cache_store = :mem_cache_store, '{{ instance.memcached_host | default(red compress: true, pool_size: {{ instance.db_pool | default(real_redmine_db_pool) }} } {% endif %} +{% if instance.with_dmsf is defined and instance.with_dmsf %} +# Redmine DMSF's WebDAV +require File.dirname(__FILE__) + '/plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware' +config.middleware.insert_before ActionDispatch::Cookies, RedmineDmsf::Webdav::CustomMiddleware +{% endif %} {% if redmine_with_nginx and nginx_with_ssl and redmine_rails_env != 'test' %} config.session_store :cookie_store,