From 4efa8823d2442969fb30f8f8129f7e9121db1598 Mon Sep 17 00:00:00 2001 From: Mark Heiges Date: Thu, 21 Apr 2016 12:18:38 -0400 Subject: [PATCH] set login session cookie secure --- roles/easyredmine/tasks/redmine.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/easyredmine/tasks/redmine.yml b/roles/easyredmine/tasks/redmine.yml index 5a28e58..065d4a9 100644 --- a/roles/easyredmine/tasks/redmine.yml +++ b/roles/easyredmine/tasks/redmine.yml @@ -111,3 +111,9 @@ user='{{ redmine_owner }}' sudo: yes +- name: set session cookie as secure + lineinfile: > + dest='{{ redmine_root_dir }}/config/application.rb' + regexp='^\s*config.session_store' + line=" config.session_store :cookie_store, :key => '_redmine_session', :secure => true" + notify: restart nginx