-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
support pass-header option in apache::fastcgi::server #1370
Conversation
| @@ -1,3 +1,4 @@ | |||
| FastCGIExternalServer <%= @faux_path %> -idle-timeout <%= @timeout %> <%= if @flush then '-flush' end %> -host <%= @host %> | |||
| FastCGIExternalServer <%= @faux_path %> -idle-timeout <%= @timeout %> <%= if @flush then '-flush' end %> -host <%= @host -%> | |||
| <%- if @pass_header -%> -pass-header <%= @pass_header %><% end %> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you actually change these two -%>\n<%- to just %> <% so they're on the same line? It seems a little confusing to have them be on two lines if you want the output to be a single line, and flush is already setting precedent for single-line code. Thanks!
|
Yes it is a bin confusing. But isn´t the readability of the template also a criteria? Please see #1368 .. This line might get even longer. Thoughts? |
|
Ah yeah, if there are lots of options to pass then the other option is to pre-set all the variables in a <%
timeout = " -idle-timeout #{@timeout}"
host = " -host #{@host}"
if @pass_header and ! @pass_header.empty?
pass_header = " -pass-header #{@pass_header}"
else
pass_header = ""
end
#...
options = timeout + flush + host + pass_header
%>
FastCGIExternalServer <%= @faux_path %><%= options %>` |
|
agreed. i´ll do that. |
|
Sorry for the late response on this. Could you document your new parameter in the readme as well? |
|
Sure. While looking into the documentation of mod_fastcgi, I realized that there are some more options available, such as Let me know, if you want me to implement the remaining options. |
|
It's okay as-is; I always say to write for future extensibility, but present simplicity :). 👍 |
support pass-header option in apache::fastcgi::server
No description provided.