Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add passenger_set_header and passenger_env_var parameters for Passenger 5.0+ #618

Merged
merged 3 commits into from
Apr 30, 2015
Merged

Add passenger_set_header and passenger_env_var parameters for Passenger 5.0+ #618

merged 3 commits into from
Apr 30, 2015

Conversation

mmarod
Copy link

@mmarod mmarod commented Apr 29, 2015

Passenger 5.0 deprecates passenger_set_cgi_param and replaced it with passenger_set_header and passenger_env_var. This allows you to specify those parameters.

https://blog.phusion.nl/2015/03/04/phusion-passenger-5-0-1-released/

<% end -%>
<% if @passenger_env_var -%>
<%- @passenger_env_var.keys.sort.each do |key| -%>
passenger_set_env_var <%= key %> <%= @passenger_env_var[key] %>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directive name according to passenger docs is passenger_env_var.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following the pattern for 'passenger_set_cgi_param' which only uses 'set' in the template when it is actually writing the config.

…lso passenger_env_var is not set with passenger_set_env_var and this commit undoes that
@mmarod mmarod changed the title Add passenger_set_header and passenger_set_env parameters for Passenger 5.0+ Add passenger_set_header and passenger_env_var parameters for Passenger 5.0+ Apr 29, 2015
@3flex
Copy link
Contributor

3flex commented Apr 30, 2015

Yeah, several existing parameters don't match the name of the nginx directives, but it's certainly something we'd like to avoid in future. Thanks for updating!

3flex added a commit that referenced this pull request Apr 30, 2015
Add passenger_set_header and passenger_env_var parameters for Passenger 5.0+
@3flex 3flex merged commit d1ff642 into voxpupuli:master Apr 30, 2015
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
Add passenger_set_header and passenger_env_var parameters for Passenger 5.0+
Slm0n87 pushed a commit to Slm0n87/puppet-nginx that referenced this pull request Mar 7, 2019
Add passenger_set_header and passenger_env_var parameters for Passenger 5.0+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants