256MbTeam / Redmine-Scrumbler

Easy to use plugin for Redmine. It allows users to use the Scrum/Agile process in projects. Scrumbler have interactive dashboard with the ability to configure for each sprint. Plugin adds Scrum Points field in every issue in project. Scrumbler as possible using the standard redmine structure of projects.
GNU General Public License v2.0
112 stars 41 forks source link

Fix for #60 : Scrumbler Javascripts not working with SSL #64

Closed letic closed 12 years ago

letic commented 12 years ago

Here is a propose fix for this issue.

Beware it won't work for people using redmine in a sub-url (ie http://mydomain.com/redmine/)

zloydadka commented 12 years ago

this code dont needed solution is: correct front-end server headers configuration for nginx: proxy_set_header X-Forwarded-Proto https; for apache: RequestHeader set X_FORWARDED_PROTO 'https'

letic commented 12 years ago

Hey zloydadka,

Thanks for the answer, but as I said in #60 I am using Nginx with phusion passenger. There is no proxying involved.

I already tried the solution proposed before opening the ticket, without any change of behaviour.

Maybe it is a bug in nginx and/or phusion passenger...

zloydadka commented 12 years ago

oh man i'm not developer of passenger, but i read it's documentation if i use it.

your solution is: passenger_set_cgi_param HTTP_X_FORWARDED_PROTO https;

zloydadka commented 12 years ago

http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_passenger_set_cgi_param_lt_cgi_environment_name_gt_lt_value_gt

letic commented 12 years ago

Yep I was looking at it after my last comment realising that it might be an issue in nginx/passenger, and found that same options. But you beat me to the reply :)

Thanks for your help ! Keep up the good work.