passenger 5.0.28 → 5.0.29
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.editorconfig +5 -0
- data/CHANGELOG +13 -0
- data/build/apache2.rb +3 -3
- data/build/common_library.rb +3 -3
- data/build/nginx.rb +4 -4
- data/build/packaging.rb +9 -8
- data/build/support/cxx_dependency_map.rb +9 -7
- data/build/support/general.rb +39 -0
- data/build/support/vendor/cxxcodebuilder/CxxCodeBuilder.sublime-project +8 -0
- data/build/support/vendor/cxxcodebuilder/Gemfile +4 -0
- data/build/support/vendor/cxxcodebuilder/Gemfile.lock +28 -0
- data/build/support/vendor/cxxcodebuilder/LICENSE.md +19 -0
- data/build/support/vendor/cxxcodebuilder/README.md +98 -0
- data/build/support/vendor/cxxcodebuilder/Rakefile +4 -0
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder.rb +23 -0
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +574 -0
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/initializer_builder.rb +166 -0
- data/build/test_basics.rb +2 -1
- data/resources/templates/standalone/server.erb +6 -4
- data/src/agent/Core/Controller/ForwardResponse.cpp +5 -5
- data/src/agent/Watchdog/WatchdogMain.cpp +0 -10
- data/src/apache2_module/ConfigurationCommands.cpp +181 -248
- data/src/apache2_module/ConfigurationCommands.cpp.cxxcodebuilder +127 -0
- data/src/apache2_module/ConfigurationFields.hpp +135 -51
- data/src/apache2_module/ConfigurationFields.hpp.cxxcodebuilder +113 -0
- data/src/apache2_module/ConfigurationSetters.cpp +414 -459
- data/src/apache2_module/ConfigurationSetters.cpp.cxxcodebuilder +144 -0
- data/src/apache2_module/CreateDirConfig.cpp +49 -52
- data/src/apache2_module/CreateDirConfig.cpp.cxxcodebuilder +81 -0
- data/src/apache2_module/Hooks.cpp +0 -14
- data/src/apache2_module/MergeDirConfig.cpp +136 -226
- data/src/apache2_module/MergeDirConfig.cpp.cxxcodebuilder +97 -0
- data/src/apache2_module/SetHeaders.cpp +92 -143
- data/src/apache2_module/SetHeaders.cpp.cxxcodebuilder +106 -0
- data/src/cxx_supportlib/Constants.h +86 -146
- data/src/cxx_supportlib/Constants.h.cxxcodebuilder +43 -0
- data/src/cxx_supportlib/DataStructures/LString.h +40 -23
- data/src/cxx_supportlib/MemoryKit/mbuf.cpp +60 -25
- data/src/cxx_supportlib/MemoryKit/mbuf.h +50 -25
- data/src/cxx_supportlib/ServerKit/CookieUtils.h +36 -3
- data/src/cxx_supportlib/ServerKit/HeaderTable.h +2 -8
- data/src/cxx_supportlib/ServerKit/HttpServer.h +6 -15
- data/src/cxx_supportlib/WatchdogLauncher.cpp +4 -4
- data/src/cxx_supportlib/WatchdogLauncher.h +2 -3
- data/src/nginx_module/CacheLocationConfig.c +623 -780
- data/src/nginx_module/CacheLocationConfig.c.cxxcodebuilder +214 -0
- data/src/nginx_module/Configuration.h +1 -1
- data/src/nginx_module/ConfigurationCommands.c +404 -535
- data/src/nginx_module/ConfigurationCommands.c.cxxcodebuilder +157 -0
- data/src/nginx_module/CreateLocationConfig.c +82 -206
- data/src/nginx_module/CreateLocationConfig.c.cxxcodebuilder +98 -0
- data/src/nginx_module/LocationConfig.h +97 -0
- data/src/nginx_module/LocationConfig.h.cxxcodebuilder +131 -0
- data/src/nginx_module/MergeLocationConfig.c +157 -278
- data/src/nginx_module/MergeLocationConfig.c.cxxcodebuilder +144 -0
- data/src/nginx_module/ngx_http_passenger_module.c +4 -10
- data/src/ruby_supportlib/phusion_passenger.rb +4 -4
- data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +2 -2
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +2 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +6 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +27 -8
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +120 -2
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/lock_file.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/spawn.rb +4 -4
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/version.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/api.rb +5 -5
- metadata +24 -15
- data/src/apache2_module/ConfigurationCommands.cpp.erb +0 -109
- data/src/apache2_module/ConfigurationFields.hpp.erb +0 -98
- data/src/apache2_module/ConfigurationSetters.cpp.erb +0 -128
- data/src/apache2_module/CreateDirConfig.cpp.erb +0 -72
- data/src/apache2_module/MergeDirConfig.cpp.erb +0 -82
- data/src/apache2_module/SetHeaders.cpp.erb +0 -91
- data/src/cxx_supportlib/Constants.h.erb +0 -41
- data/src/nginx_module/CacheLocationConfig.c.erb +0 -171
- data/src/nginx_module/ConfigurationCommands.c.erb +0 -144
- data/src/nginx_module/ConfigurationFields.h +0 -145
- data/src/nginx_module/ConfigurationFields.h.erb +0 -112
- data/src/nginx_module/CreateLocationConfig.c.erb +0 -78
- data/src/nginx_module/MergeLocationConfig.c.erb +0 -118
@@ -0,0 +1,214 @@
|
|
1
|
+
# Phusion Passenger - https://www.phusionpassenger.com/
|
2
|
+
# Copyright (c) 2010-2016 Phusion Holding B.V.
|
3
|
+
#
|
4
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
5
|
+
# trademarks of Phusion Holding B.V.
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
# THE SOFTWARE.
|
24
|
+
|
25
|
+
# This file uses the cxxcodebuilder API. Learn more at:
|
26
|
+
# https://github.com/phusion/passenger/cxxcodebuilder
|
27
|
+
|
28
|
+
require 'phusion_passenger/nginx/config_options'
|
29
|
+
|
30
|
+
def main
|
31
|
+
set_indent_string ' '
|
32
|
+
comment copyright_header_for(__FILE__)
|
33
|
+
|
34
|
+
separator
|
35
|
+
|
36
|
+
comment %q{
|
37
|
+
CacheLocationConfig.c is automatically generated from CacheLocationConfig.c.cxxcodebuilder,
|
38
|
+
using definitions from src/ruby_supportlib/phusion_passenger/nginx/config_options.rb.
|
39
|
+
Edits to CacheLocationConfig.c will be lost.
|
40
|
+
|
41
|
+
To update CacheLocationConfig.c:
|
42
|
+
rake nginx
|
43
|
+
|
44
|
+
To force regeneration of CacheLocationConfig.c:
|
45
|
+
rm -f src/nginx_module/CacheLocationConfig.c
|
46
|
+
rake src/nginx_module/CacheLocationConfig.c
|
47
|
+
}
|
48
|
+
|
49
|
+
comment '0: NGX_ERROR, 1: OK'
|
50
|
+
function('int generated_cache_location_part(ngx_conf_t *cf, passenger_loc_conf_t *conf)') do
|
51
|
+
add_code %q{
|
52
|
+
size_t len = 0;
|
53
|
+
u_char int_buf[32], *end, *buf, *pos;
|
54
|
+
}
|
55
|
+
|
56
|
+
separator
|
57
|
+
comment 'Calculate lengths'
|
58
|
+
separator
|
59
|
+
|
60
|
+
filter_eligible_options(LOCATION_CONFIGURATION_OPTIONS).each do |option|
|
61
|
+
if option[:type] == :string
|
62
|
+
add_code %Q{
|
63
|
+
if (conf->#{struct_field_for(option)}.data != NULL) {
|
64
|
+
len += sizeof("!~#{header_name_for(option)}: ") - 1;
|
65
|
+
len += conf->#{struct_field_for(option)}.len;
|
66
|
+
len += sizeof("\\r\\n") - 1;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
elsif option[:type] == :integer
|
70
|
+
add_code %Q{
|
71
|
+
if (conf->#{struct_field_for(option)} != NGX_CONF_UNSET) {
|
72
|
+
end = ngx_snprintf(int_buf,
|
73
|
+
sizeof(int_buf) - 1,
|
74
|
+
"%d",
|
75
|
+
conf->#{struct_field_for(option)});
|
76
|
+
len += sizeof("!~#{header_name_for(option)}: ") - 1;
|
77
|
+
len += end - int_buf;
|
78
|
+
len += sizeof("\\r\\n") - 1;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
elsif option[:type] == :uinteger
|
82
|
+
add_code %Q{
|
83
|
+
if (conf->#{struct_field_for(option)} != NGX_CONF_UNSET_UINT) {
|
84
|
+
end = ngx_snprintf(int_buf,
|
85
|
+
sizeof(int_buf) - 1,
|
86
|
+
"%ui",
|
87
|
+
conf->#{struct_field_for(option)});
|
88
|
+
len += sizeof("!~#{header_name_for(option)}: ") - 1;
|
89
|
+
len += end - int_buf;
|
90
|
+
len += sizeof("\\r\\n") - 1;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
elsif option[:type] == :flag
|
94
|
+
add_code %Q{
|
95
|
+
if (conf->#{struct_field_for(option)} != NGX_CONF_UNSET) {
|
96
|
+
len += sizeof("!~#{header_name_for(option)}: ") - 1;
|
97
|
+
len += conf->#{struct_field_for(option)}
|
98
|
+
? sizeof("t\\r\\n") - 1
|
99
|
+
: sizeof("f\\r\\n") - 1;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
else
|
103
|
+
raise "Unknown option type #{option[:type].inspect} for option #{option[:name]}"
|
104
|
+
end
|
105
|
+
|
106
|
+
separator
|
107
|
+
end
|
108
|
+
|
109
|
+
separator
|
110
|
+
|
111
|
+
add_code %q{
|
112
|
+
/* Create string */
|
113
|
+
buf = pos = ngx_pnalloc(cf->pool, len);
|
114
|
+
if (buf == NULL) {
|
115
|
+
return 0;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
separator
|
120
|
+
|
121
|
+
filter_eligible_options(LOCATION_CONFIGURATION_OPTIONS).each do |option|
|
122
|
+
if option[:type] == :string
|
123
|
+
add_code %Q{
|
124
|
+
if (conf->#{struct_field_for(option)}.data != NULL) {
|
125
|
+
pos = ngx_copy(pos,
|
126
|
+
"!~#{header_name_for(option)}: ",
|
127
|
+
sizeof("!~#{header_name_for(option)}: ") - 1);
|
128
|
+
pos = ngx_copy(pos,
|
129
|
+
conf->#{struct_field_for(option)}.data,
|
130
|
+
conf->#{struct_field_for(option)}.len);
|
131
|
+
pos = ngx_copy(pos, (const u_char *) "\\r\\n", sizeof("\\r\\n") - 1);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
elsif option[:type] == :integer
|
135
|
+
add_code %Q{
|
136
|
+
if (conf->#{struct_field_for(option)} != NGX_CONF_UNSET) {
|
137
|
+
pos = ngx_copy(pos,
|
138
|
+
"!~#{header_name_for(option)}: ",
|
139
|
+
sizeof("!~#{header_name_for(option)}: ") - 1);
|
140
|
+
end = ngx_snprintf(int_buf,
|
141
|
+
sizeof(int_buf) - 1,
|
142
|
+
"%d",
|
143
|
+
conf->#{struct_field_for(option)});
|
144
|
+
pos = ngx_copy(pos, int_buf, end - int_buf);
|
145
|
+
pos = ngx_copy(pos, (const u_char *) "\\r\\n", sizeof("\\r\\n") - 1);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
elsif option[:type] == :uinteger
|
149
|
+
add_code %Q{
|
150
|
+
if (conf->#{struct_field_for(option)} != NGX_CONF_UNSET_UINT) {
|
151
|
+
pos = ngx_copy(pos,
|
152
|
+
"!~#{header_name_for(option)}: ",
|
153
|
+
sizeof("!~#{header_name_for(option)}: ") - 1);
|
154
|
+
end = ngx_snprintf(int_buf,
|
155
|
+
sizeof(int_buf) - 1,
|
156
|
+
"%ui",
|
157
|
+
conf->#{struct_field_for(option)});
|
158
|
+
pos = ngx_copy(pos, int_buf, end - int_buf);
|
159
|
+
pos = ngx_copy(pos, (const u_char *) "\\r\\n", sizeof("\\r\\n") - 1);
|
160
|
+
}
|
161
|
+
}
|
162
|
+
elsif option[:type] == :flag
|
163
|
+
add_code %Q{
|
164
|
+
if (conf->#{struct_field_for(option)} != NGX_CONF_UNSET) {
|
165
|
+
pos = ngx_copy(pos,
|
166
|
+
"!~#{header_name_for(option)}: ",
|
167
|
+
sizeof("!~#{header_name_for(option)}: ") - 1);
|
168
|
+
if (conf->#{struct_field_for(option)}) {
|
169
|
+
pos = ngx_copy(pos, "t\\r\\n", sizeof("t\\r\\n") - 1);
|
170
|
+
} else {
|
171
|
+
pos = ngx_copy(pos, "f\\r\\n", sizeof("f\\r\\n") - 1);
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
separator
|
177
|
+
else
|
178
|
+
raise "Unknown option type #{option[:type].inspect} for option #{option[:name]}"
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
separator
|
183
|
+
|
184
|
+
add_code %q{
|
185
|
+
conf->options_cache.data = buf;
|
186
|
+
conf->options_cache.len = pos - buf;
|
187
|
+
|
188
|
+
return 1;
|
189
|
+
}
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
def filter_eligible_options(options)
|
194
|
+
options.reject do |option|
|
195
|
+
option[:alias_for] ||
|
196
|
+
option.fetch(:field, true).nil? ||
|
197
|
+
option[:field].to_s =~ /\./ ||
|
198
|
+
!option.fetch(:header, true)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
def struct_field_for(option)
|
203
|
+
if option.has_key?(:field)
|
204
|
+
option[:field]
|
205
|
+
else
|
206
|
+
option[:name].sub(/^passenger_/, '')
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
def header_name_for(option)
|
211
|
+
option[:header] || option[:name].upcase
|
212
|
+
end
|
213
|
+
|
214
|
+
main
|
@@ -1,31 +1,31 @@
|
|
1
1
|
/*
|
2
|
-
*
|
3
|
-
*
|
2
|
+
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
+
* Copyright (c) 2010-2016 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
*
|
6
|
-
*
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
7
7
|
*
|
8
|
-
*
|
9
|
-
*
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
* of this software and associated documentation files (the "Software"), to deal
|
10
|
+
* in the Software without restriction, including without limitation the rights
|
11
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12
|
+
* copies of the Software, and to permit persons to whom the Software is
|
13
|
+
* furnished to do so, subject to the following conditions:
|
14
14
|
*
|
15
|
-
*
|
16
|
-
*
|
15
|
+
* The above copyright notice and this permission notice shall be included in
|
16
|
+
* all copies or substantial portions of the Software.
|
17
17
|
*
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
* THE SOFTWARE.
|
25
25
|
*/
|
26
26
|
|
27
27
|
/*
|
28
|
-
* ConfigurationCommands.c is automatically generated from ConfigurationCommands.c.
|
28
|
+
* ConfigurationCommands.c is automatically generated from ConfigurationCommands.c.cxxcodebuilder,
|
29
29
|
* using definitions from src/ruby_supportlib/phusion_passenger/nginx/config_options.rb.
|
30
30
|
* Edits to ConfigurationCommands.c will be lost.
|
31
31
|
*
|
@@ -37,646 +37,515 @@
|
|
37
37
|
* rake src/nginx_module/ConfigurationCommands.c
|
38
38
|
*/
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
40
|
{
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
NULL
|
41
|
+
ngx_string("passenger_socket_backlog"),
|
42
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
43
|
+
ngx_conf_set_num_slot,
|
44
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
45
|
+
offsetof(passenger_main_conf_t, socket_backlog),
|
46
|
+
NULL
|
51
47
|
},
|
52
|
-
|
53
48
|
{
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
NULL
|
49
|
+
ngx_string("passenger_core_file_descriptor_ulimit"),
|
50
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
51
|
+
ngx_conf_set_num_slot,
|
52
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
53
|
+
offsetof(passenger_main_conf_t, core_file_descriptor_ulimit),
|
54
|
+
NULL
|
61
55
|
},
|
62
|
-
|
63
56
|
{
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
NULL
|
57
|
+
ngx_string("passenger_app_file_descriptor_ulimit"),
|
58
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
59
|
+
ngx_conf_set_num_slot,
|
60
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
61
|
+
offsetof(passenger_loc_conf_t, app_file_descriptor_ulimit),
|
62
|
+
NULL
|
71
63
|
},
|
72
|
-
|
73
64
|
{
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
NULL
|
65
|
+
ngx_string("passenger_enabled"),
|
66
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
67
|
+
passenger_enabled,
|
68
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
69
|
+
offsetof(passenger_loc_conf_t, enabled),
|
70
|
+
NULL
|
81
71
|
},
|
82
|
-
|
83
72
|
{
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
NULL
|
73
|
+
ngx_string("passenger_ruby"),
|
74
|
+
NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
75
|
+
ngx_conf_set_str_slot,
|
76
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
77
|
+
offsetof(passenger_loc_conf_t, ruby),
|
78
|
+
NULL
|
91
79
|
},
|
92
|
-
|
93
80
|
{
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
NULL
|
81
|
+
ngx_string("passenger_python"),
|
82
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
83
|
+
ngx_conf_set_str_slot,
|
84
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
85
|
+
offsetof(passenger_loc_conf_t, python),
|
86
|
+
NULL
|
101
87
|
},
|
102
|
-
|
103
88
|
{
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
NULL
|
89
|
+
ngx_string("passenger_nodejs"),
|
90
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
91
|
+
ngx_conf_set_str_slot,
|
92
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
93
|
+
offsetof(passenger_loc_conf_t, nodejs),
|
94
|
+
NULL
|
111
95
|
},
|
112
|
-
|
113
96
|
{
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
NULL
|
97
|
+
ngx_string("passenger_meteor_app_settings"),
|
98
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
99
|
+
ngx_conf_set_str_slot,
|
100
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
101
|
+
offsetof(passenger_loc_conf_t, meteor_app_settings),
|
102
|
+
NULL
|
121
103
|
},
|
122
|
-
|
123
104
|
{
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
NULL
|
105
|
+
ngx_string("passenger_app_env"),
|
106
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
107
|
+
ngx_conf_set_str_slot,
|
108
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
109
|
+
offsetof(passenger_loc_conf_t, environment),
|
110
|
+
NULL
|
131
111
|
},
|
132
|
-
|
133
112
|
{
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
NULL
|
113
|
+
ngx_string("passenger_friendly_error_pages"),
|
114
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
115
|
+
ngx_conf_set_flag_slot,
|
116
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
117
|
+
offsetof(passenger_loc_conf_t, friendly_error_pages),
|
118
|
+
NULL
|
141
119
|
},
|
142
|
-
|
143
120
|
{
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
NULL
|
121
|
+
ngx_string("passenger_min_instances"),
|
122
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
123
|
+
ngx_conf_set_num_slot,
|
124
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
125
|
+
offsetof(passenger_loc_conf_t, min_instances),
|
126
|
+
NULL
|
151
127
|
},
|
152
|
-
|
153
128
|
{
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
NULL
|
129
|
+
ngx_string("passenger_max_instances_per_app"),
|
130
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
131
|
+
ngx_conf_set_num_slot,
|
132
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
133
|
+
offsetof(passenger_loc_conf_t, max_instances_per_app),
|
134
|
+
NULL
|
161
135
|
},
|
162
|
-
|
163
136
|
{
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
NULL
|
137
|
+
ngx_string("passenger_max_requests"),
|
138
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
139
|
+
ngx_conf_set_num_slot,
|
140
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
141
|
+
offsetof(passenger_loc_conf_t, max_requests),
|
142
|
+
NULL
|
171
143
|
},
|
172
|
-
|
173
144
|
{
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
NULL
|
145
|
+
ngx_string("passenger_start_timeout"),
|
146
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
147
|
+
ngx_conf_set_num_slot,
|
148
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
149
|
+
offsetof(passenger_loc_conf_t, start_timeout),
|
150
|
+
NULL
|
181
151
|
},
|
182
|
-
|
183
152
|
{
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
NULL
|
153
|
+
ngx_string("passenger_base_uri"),
|
154
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
155
|
+
ngx_conf_set_str_array_slot,
|
156
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
157
|
+
offsetof(passenger_loc_conf_t, base_uris),
|
158
|
+
NULL
|
191
159
|
},
|
192
|
-
|
193
160
|
{
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
NULL
|
161
|
+
ngx_string("passenger_document_root"),
|
162
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
163
|
+
ngx_conf_set_str_slot,
|
164
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
165
|
+
offsetof(passenger_loc_conf_t, document_root),
|
166
|
+
NULL
|
201
167
|
},
|
202
|
-
|
203
168
|
{
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
NULL
|
169
|
+
ngx_string("passenger_user"),
|
170
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
171
|
+
ngx_conf_set_str_slot,
|
172
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
173
|
+
offsetof(passenger_loc_conf_t, user),
|
174
|
+
NULL
|
211
175
|
},
|
212
|
-
|
213
176
|
{
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
NULL
|
177
|
+
ngx_string("passenger_group"),
|
178
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
179
|
+
ngx_conf_set_str_slot,
|
180
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
181
|
+
offsetof(passenger_loc_conf_t, group),
|
182
|
+
NULL
|
221
183
|
},
|
222
|
-
|
223
184
|
{
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
NULL
|
185
|
+
ngx_string("passenger_app_group_name"),
|
186
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
187
|
+
ngx_conf_set_str_slot,
|
188
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
189
|
+
offsetof(passenger_loc_conf_t, app_group_name),
|
190
|
+
NULL
|
231
191
|
},
|
232
|
-
|
233
192
|
{
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
NULL
|
193
|
+
ngx_string("passenger_app_root"),
|
194
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
195
|
+
ngx_conf_set_str_slot,
|
196
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
197
|
+
offsetof(passenger_loc_conf_t, app_root),
|
198
|
+
NULL
|
241
199
|
},
|
242
|
-
|
243
200
|
{
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
NULL
|
201
|
+
ngx_string("passenger_app_rights"),
|
202
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
203
|
+
ngx_conf_set_str_slot,
|
204
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
205
|
+
offsetof(passenger_loc_conf_t, app_rights),
|
206
|
+
NULL
|
251
207
|
},
|
252
|
-
|
253
208
|
{
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
NULL
|
209
|
+
ngx_string("union_station_support"),
|
210
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
211
|
+
ngx_conf_set_flag_slot,
|
212
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
213
|
+
offsetof(passenger_loc_conf_t, union_station_support),
|
214
|
+
NULL
|
261
215
|
},
|
262
|
-
|
263
216
|
{
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
NULL
|
217
|
+
ngx_string("union_station_filter"),
|
218
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
219
|
+
union_station_filter,
|
220
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
221
|
+
offsetof(passenger_loc_conf_t, union_station_filters),
|
222
|
+
NULL
|
271
223
|
},
|
272
|
-
|
273
224
|
{
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
NULL
|
225
|
+
ngx_string("passenger_debugger"),
|
226
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
227
|
+
ngx_conf_set_flag_slot,
|
228
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
229
|
+
offsetof(passenger_loc_conf_t, debugger),
|
230
|
+
NULL
|
281
231
|
},
|
282
|
-
|
283
232
|
{
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
NULL
|
233
|
+
ngx_string("passenger_max_preloader_idle_time"),
|
234
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
235
|
+
ngx_conf_set_num_slot,
|
236
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
237
|
+
offsetof(passenger_loc_conf_t, max_preloader_idle_time),
|
238
|
+
NULL
|
291
239
|
},
|
292
|
-
|
293
240
|
{
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
&ngx_http_upstream_ignore_headers_masks
|
241
|
+
ngx_string("passenger_ignore_headers"),
|
242
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_1MORE,
|
243
|
+
ngx_conf_set_bitmask_slot,
|
244
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
245
|
+
offsetof(passenger_loc_conf_t, upstream_config.ignore_headers),
|
246
|
+
&ngx_http_upstream_ignore_headers_masks
|
301
247
|
},
|
302
|
-
|
303
248
|
{
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
NULL
|
249
|
+
ngx_string("passenger_env_var"),
|
250
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE2,
|
251
|
+
ngx_conf_set_keyval_slot,
|
252
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
253
|
+
offsetof(passenger_loc_conf_t, env_vars),
|
254
|
+
NULL
|
311
255
|
},
|
312
|
-
|
313
256
|
{
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
NULL
|
257
|
+
ngx_string("passenger_set_header"),
|
258
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE2,
|
259
|
+
ngx_conf_set_keyval_slot,
|
260
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
261
|
+
offsetof(passenger_loc_conf_t, headers_source),
|
262
|
+
NULL
|
321
263
|
},
|
322
|
-
|
323
264
|
{
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
NULL
|
265
|
+
ngx_string("passenger_pass_header"),
|
266
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
267
|
+
ngx_conf_set_str_array_slot,
|
268
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
269
|
+
offsetof(passenger_loc_conf_t, upstream_config.pass_headers),
|
270
|
+
NULL
|
331
271
|
},
|
332
|
-
|
333
272
|
{
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
NULL
|
273
|
+
ngx_string("passenger_headers_hash_max_size"),
|
274
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
275
|
+
ngx_conf_set_num_slot,
|
276
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
277
|
+
offsetof(passenger_loc_conf_t, headers_hash_max_size),
|
278
|
+
NULL
|
341
279
|
},
|
342
|
-
|
343
280
|
{
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
NULL
|
281
|
+
ngx_string("passenger_headers_hash_bucket_size"),
|
282
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
283
|
+
ngx_conf_set_num_slot,
|
284
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
285
|
+
offsetof(passenger_loc_conf_t, headers_hash_bucket_size),
|
286
|
+
NULL
|
351
287
|
},
|
352
|
-
|
353
288
|
{
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
NULL
|
289
|
+
ngx_string("passenger_ignore_client_abort"),
|
290
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
291
|
+
ngx_conf_set_flag_slot,
|
292
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
293
|
+
offsetof(passenger_loc_conf_t, upstream_config.ignore_client_abort),
|
294
|
+
NULL
|
361
295
|
},
|
362
|
-
|
363
296
|
{
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
NULL
|
297
|
+
ngx_string("passenger_buffer_response"),
|
298
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
299
|
+
ngx_conf_set_flag_slot,
|
300
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
301
|
+
offsetof(passenger_loc_conf_t, upstream_config.buffering),
|
302
|
+
NULL
|
371
303
|
},
|
372
|
-
|
373
304
|
{
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
NULL
|
305
|
+
ngx_string("passenger_buffer_size"),
|
306
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
307
|
+
ngx_conf_set_size_slot,
|
308
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
309
|
+
offsetof(passenger_loc_conf_t, upstream_config.buffer_size),
|
310
|
+
NULL
|
381
311
|
},
|
382
|
-
|
383
312
|
{
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
NULL
|
313
|
+
ngx_string("passenger_buffers"),
|
314
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE2,
|
315
|
+
ngx_conf_set_bufs_slot,
|
316
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
317
|
+
offsetof(passenger_loc_conf_t, upstream_config.bufs),
|
318
|
+
NULL
|
391
319
|
},
|
392
|
-
|
393
320
|
{
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
NULL
|
321
|
+
ngx_string("passenger_busy_buffers_size"),
|
322
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
323
|
+
ngx_conf_set_size_slot,
|
324
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
325
|
+
offsetof(passenger_loc_conf_t, upstream_config.busy_buffers_size_conf),
|
326
|
+
NULL
|
401
327
|
},
|
402
|
-
|
403
328
|
{
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
NULL
|
329
|
+
ngx_string("passenger_intercept_errors"),
|
330
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
331
|
+
ngx_conf_set_flag_slot,
|
332
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
333
|
+
offsetof(passenger_loc_conf_t, upstream_config.intercept_errors),
|
334
|
+
NULL
|
411
335
|
},
|
412
|
-
|
413
336
|
{
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
NULL
|
337
|
+
ngx_string("passenger_spawn_method"),
|
338
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
339
|
+
ngx_conf_set_str_slot,
|
340
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
341
|
+
offsetof(passenger_loc_conf_t, spawn_method),
|
342
|
+
NULL
|
421
343
|
},
|
422
|
-
|
423
344
|
{
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
NULL
|
345
|
+
ngx_string("passenger_load_shell_envvars"),
|
346
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
347
|
+
ngx_conf_set_flag_slot,
|
348
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
349
|
+
offsetof(passenger_loc_conf_t, load_shell_envvars),
|
350
|
+
NULL
|
431
351
|
},
|
432
|
-
|
433
352
|
{
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
NULL
|
353
|
+
ngx_string("union_station_key"),
|
354
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
355
|
+
ngx_conf_set_str_slot,
|
356
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
357
|
+
offsetof(passenger_loc_conf_t, union_station_key),
|
358
|
+
NULL
|
441
359
|
},
|
442
|
-
|
443
360
|
{
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
NULL
|
361
|
+
ngx_string("passenger_max_request_queue_size"),
|
362
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
363
|
+
ngx_conf_set_num_slot,
|
364
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
365
|
+
offsetof(passenger_loc_conf_t, max_request_queue_size),
|
366
|
+
NULL
|
451
367
|
},
|
452
|
-
|
453
368
|
{
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
NULL
|
369
|
+
ngx_string("passenger_request_queue_overflow_status_code"),
|
370
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
371
|
+
ngx_conf_set_num_slot,
|
372
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
373
|
+
offsetof(passenger_loc_conf_t, request_queue_overflow_status_code),
|
374
|
+
NULL
|
461
375
|
},
|
462
|
-
|
463
376
|
{
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
NULL
|
377
|
+
ngx_string("passenger_restart_dir"),
|
378
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
379
|
+
ngx_conf_set_str_slot,
|
380
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
381
|
+
offsetof(passenger_loc_conf_t, restart_dir),
|
382
|
+
NULL
|
471
383
|
},
|
472
|
-
|
473
384
|
{
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
NULL
|
385
|
+
ngx_string("passenger_app_type"),
|
386
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
387
|
+
ngx_conf_set_str_slot,
|
388
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
389
|
+
offsetof(passenger_loc_conf_t, app_type),
|
390
|
+
NULL
|
481
391
|
},
|
482
|
-
|
483
392
|
{
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
NULL
|
393
|
+
ngx_string("passenger_startup_file"),
|
394
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
395
|
+
ngx_conf_set_str_slot,
|
396
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
397
|
+
offsetof(passenger_loc_conf_t, startup_file),
|
398
|
+
NULL
|
491
399
|
},
|
492
|
-
|
493
400
|
{
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
NULL
|
401
|
+
ngx_string("passenger_sticky_sessions"),
|
402
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
403
|
+
ngx_conf_set_flag_slot,
|
404
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
405
|
+
offsetof(passenger_loc_conf_t, sticky_sessions),
|
406
|
+
NULL
|
501
407
|
},
|
502
|
-
|
503
408
|
{
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
NULL
|
409
|
+
ngx_string("passenger_sticky_sessions_cookie_name"),
|
410
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
411
|
+
ngx_conf_set_str_slot,
|
412
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
413
|
+
offsetof(passenger_loc_conf_t, sticky_sessions_cookie_name),
|
414
|
+
NULL
|
511
415
|
},
|
512
|
-
|
513
416
|
{
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
NULL
|
417
|
+
ngx_string("passenger_vary_turbocache_by_cookie"),
|
418
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
419
|
+
ngx_conf_set_str_slot,
|
420
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
421
|
+
offsetof(passenger_loc_conf_t, vary_turbocache_by_cookie),
|
422
|
+
NULL
|
521
423
|
},
|
522
|
-
|
523
424
|
{
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
NULL
|
425
|
+
ngx_string("passenger_abort_websockets_on_process_shutdown"),
|
426
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
427
|
+
ngx_conf_set_flag_slot,
|
428
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
429
|
+
offsetof(passenger_loc_conf_t, abort_websockets_on_process_shutdown),
|
430
|
+
NULL
|
531
431
|
},
|
532
|
-
|
533
432
|
{
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
NULL
|
433
|
+
ngx_string("passenger_force_max_concurrent_requests_per_process"),
|
434
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
435
|
+
ngx_conf_set_num_slot,
|
436
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
437
|
+
offsetof(passenger_loc_conf_t, force_max_concurrent_requests_per_process),
|
438
|
+
NULL
|
541
439
|
},
|
542
|
-
|
543
440
|
{
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
NULL
|
441
|
+
ngx_string("passenger_fly_with"),
|
442
|
+
NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE1,
|
443
|
+
passenger_enterprise_only,
|
444
|
+
NGX_HTTP_MAIN_CONF_OFFSET,
|
445
|
+
0,
|
446
|
+
NULL
|
551
447
|
},
|
552
|
-
|
553
448
|
{
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
NULL
|
449
|
+
ngx_string("passenger_max_instances"),
|
450
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
451
|
+
passenger_enterprise_only,
|
452
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
453
|
+
0,
|
454
|
+
NULL
|
561
455
|
},
|
562
|
-
|
563
456
|
{
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
NULL
|
457
|
+
ngx_string("passenger_max_request_time"),
|
458
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
459
|
+
passenger_enterprise_only,
|
460
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
461
|
+
0,
|
462
|
+
NULL
|
571
463
|
},
|
572
|
-
|
573
464
|
{
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
NULL
|
465
|
+
ngx_string("passenger_memory_limit"),
|
466
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
467
|
+
passenger_enterprise_only,
|
468
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
469
|
+
0,
|
470
|
+
NULL
|
581
471
|
},
|
582
|
-
|
583
472
|
{
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
NULL
|
473
|
+
ngx_string("passenger_concurrency_model"),
|
474
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
475
|
+
passenger_enterprise_only,
|
476
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
477
|
+
0,
|
478
|
+
NULL
|
591
479
|
},
|
592
|
-
|
593
480
|
{
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
NULL
|
481
|
+
ngx_string("passenger_thread_count"),
|
482
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
483
|
+
passenger_enterprise_only,
|
484
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
485
|
+
0,
|
486
|
+
NULL
|
601
487
|
},
|
602
|
-
|
603
488
|
{
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
NULL
|
489
|
+
ngx_string("passenger_rolling_restarts"),
|
490
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
491
|
+
passenger_enterprise_only,
|
492
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
493
|
+
0,
|
494
|
+
NULL
|
611
495
|
},
|
612
|
-
|
613
496
|
{
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
NULL
|
497
|
+
ngx_string("passenger_resist_deployment_errors"),
|
498
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
499
|
+
passenger_enterprise_only,
|
500
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
501
|
+
0,
|
502
|
+
NULL
|
621
503
|
},
|
622
|
-
|
623
504
|
{
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
NULL
|
505
|
+
ngx_string("rails_spawn_method"),
|
506
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
507
|
+
ngx_conf_set_str_slot,
|
508
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
509
|
+
offsetof(passenger_loc_conf_t, spawn_method),
|
510
|
+
NULL
|
631
511
|
},
|
632
|
-
|
633
512
|
{
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
NULL
|
513
|
+
ngx_string("rails_env"),
|
514
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
515
|
+
ngx_conf_set_str_slot,
|
516
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
517
|
+
offsetof(passenger_loc_conf_t, environment),
|
518
|
+
NULL
|
641
519
|
},
|
642
|
-
|
643
520
|
{
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
NULL
|
521
|
+
ngx_string("rack_env"),
|
522
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
523
|
+
ngx_conf_set_str_slot,
|
524
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
525
|
+
offsetof(passenger_loc_conf_t, environment),
|
526
|
+
NULL
|
651
527
|
},
|
652
|
-
|
653
528
|
{
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
NULL
|
529
|
+
ngx_string("rails_app_spawner_idle_time"),
|
530
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
531
|
+
ngx_conf_set_num_slot,
|
532
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
533
|
+
offsetof(passenger_loc_conf_t, max_preloader_idle_time),
|
534
|
+
NULL
|
661
535
|
},
|
662
|
-
|
663
536
|
{
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
NULL
|
537
|
+
ngx_string("rails_framework_spawner_idle_time"),
|
538
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE1,
|
539
|
+
rails_framework_spawner_idle_time,
|
540
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
541
|
+
0,
|
542
|
+
NULL
|
671
543
|
},
|
672
|
-
|
673
544
|
{
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
NULL
|
545
|
+
ngx_string("passenger_use_global_queue"),
|
546
|
+
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_FLAG,
|
547
|
+
passenger_use_global_queue,
|
548
|
+
NGX_HTTP_LOC_CONF_OFFSET,
|
549
|
+
0,
|
550
|
+
NULL
|
681
551
|
},
|
682
|
-
|