passenger 6.1.4 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +6 -1
  3. data/Rakefile +1 -1
  4. data/build/agent.rb +15 -15
  5. data/build/apache2.rb +18 -18
  6. data/build/basics.rb +1 -1
  7. data/build/common_library.rb +21 -20
  8. data/build/cxx_tests.rb +19 -19
  9. data/build/integration_tests.rb +3 -3
  10. data/build/misc.rb +10 -9
  11. data/build/nginx.rb +12 -12
  12. data/build/oxt_tests.rb +7 -7
  13. data/build/packaging.rb +11 -11
  14. data/build/ruby_extension.rb +3 -3
  15. data/build/ruby_tests.rb +1 -1
  16. data/build/schema_printer.rb +13 -13
  17. data/build/support/cplusplus.rb +8 -8
  18. data/build/support/cxx_dependency_map.rb +622 -622
  19. data/build/support/general.rb +0 -1
  20. data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser/parser.rb +4 -4
  21. data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +1 -1
  22. data/build/test_basics.rb +4 -4
  23. data/dev/colorize-logs +6 -6
  24. data/dev/copy_boost_headers +8 -8
  25. data/dev/index_cxx_dependencies.rb +6 -6
  26. data/dev/install_scripts_bootstrap_code.rb +4 -4
  27. data/dev/list_tests +2 -2
  28. data/dev/nginx_version_sha256 +2 -2
  29. data/dev/parse_file_descriptor_log +1 -1
  30. data/passenger.gemspec +4 -4
  31. data/src/agent/Core/Config.h +1 -1
  32. data/src/agent/Core/Controller/Config.h +1 -1
  33. data/src/agent/Watchdog/Config.h +1 -1
  34. data/src/cxx_supportlib/Constants.h +1 -1
  35. data/src/helper-scripts/backtrace-sanitizer.rb +2 -2
  36. data/src/helper-scripts/download_binaries/extconf.rb +8 -8
  37. data/src/helper-scripts/meteor-loader.rb +39 -39
  38. data/src/helper-scripts/rack-loader.rb +1 -0
  39. data/src/helper-scripts/rack-preloader.rb +2 -1
  40. data/src/ruby_native_extension/extconf.rb +27 -28
  41. data/src/ruby_supportlib/phusion_passenger/abstract_installer.rb +27 -27
  42. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb +5 -4
  43. data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +9 -8
  44. data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +24 -24
  45. data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +5 -5
  46. data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +526 -526
  47. data/src/ruby_supportlib/phusion_passenger/apache2/config_utils.rb +1 -1
  48. data/src/ruby_supportlib/phusion_passenger/common_library.rb +105 -105
  49. data/src/ruby_supportlib/phusion_passenger/config/about_command.rb +5 -5
  50. data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +7 -6
  51. data/src/ruby_supportlib/phusion_passenger/config/api_call_command.rb +1 -1
  52. data/src/ruby_supportlib/phusion_passenger/config/command.rb +1 -1
  53. data/src/ruby_supportlib/phusion_passenger/config/compile_agent_command.rb +1 -1
  54. data/src/ruby_supportlib/phusion_passenger/config/compile_nginx_engine_command.rb +5 -5
  55. data/src/ruby_supportlib/phusion_passenger/config/detach_process_command.rb +1 -1
  56. data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +17 -17
  57. data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +18 -18
  58. data/src/ruby_supportlib/phusion_passenger/config/install_agent_command.rb +10 -10
  59. data/src/ruby_supportlib/phusion_passenger/config/install_standalone_runtime_command.rb +12 -12
  60. data/src/ruby_supportlib/phusion_passenger/config/installation_utils.rb +24 -23
  61. data/src/ruby_supportlib/phusion_passenger/config/main.rb +26 -26
  62. data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +5 -4
  63. data/src/ruby_supportlib/phusion_passenger/config/reopen_logs_command.rb +1 -1
  64. data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +4 -4
  65. data/src/ruby_supportlib/phusion_passenger/config/system_properties_command.rb +14 -13
  66. data/src/ruby_supportlib/phusion_passenger/config/utils.rb +1 -1
  67. data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +34 -33
  68. data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +3 -2
  69. data/src/ruby_supportlib/phusion_passenger/debug_logging.rb +2 -2
  70. data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +35 -36
  71. data/src/ruby_supportlib/phusion_passenger/message_channel.rb +17 -16
  72. data/src/ruby_supportlib/phusion_passenger/message_client.rb +5 -4
  73. data/src/ruby_supportlib/phusion_passenger/native_support.rb +42 -42
  74. data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +548 -548
  75. data/src/ruby_supportlib/phusion_passenger/packaging.rb +6 -6
  76. data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +85 -84
  77. data/src/ruby_supportlib/phusion_passenger/platform_info/apache_detector.rb +13 -13
  78. data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +5 -5
  79. data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +65 -65
  80. data/src/ruby_supportlib/phusion_passenger/platform_info/crypto.rb +6 -6
  81. data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +5 -5
  82. data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +10 -10
  83. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck.rb +6 -5
  84. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/apache2.rb +7 -7
  85. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +1 -1
  86. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/ruby.rb +7 -7
  87. data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/utilities.rb +1 -1
  88. data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +14 -13
  89. data/src/ruby_supportlib/phusion_passenger/platform_info/networking.rb +27 -26
  90. data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +16 -16
  91. data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +1 -1
  92. data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +29 -28
  93. data/src/ruby_supportlib/phusion_passenger/platform_info/zlib.rb +2 -2
  94. data/src/ruby_supportlib/phusion_passenger/platform_info.rb +37 -36
  95. data/src/ruby_supportlib/phusion_passenger/plugin.rb +3 -3
  96. data/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb +16 -15
  97. data/src/ruby_supportlib/phusion_passenger/public_api.rb +1 -1
  98. data/src/ruby_supportlib/phusion_passenger/rack/handler.rb +1 -1
  99. data/src/ruby_supportlib/phusion_passenger/rack/out_of_band_gc.rb +5 -4
  100. data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +8 -7
  101. data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +9 -11
  102. data/src/ruby_supportlib/phusion_passenger/request_handler.rb +27 -26
  103. data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +6 -5
  104. data/src/ruby_supportlib/phusion_passenger/ruby_core_io_enhancements.rb +7 -6
  105. data/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb +13 -13
  106. data/src/ruby_supportlib/phusion_passenger/standalone/command.rb +1 -1
  107. data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +351 -351
  108. data/src/ruby_supportlib/phusion_passenger/standalone/main.rb +11 -11
  109. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +13 -14
  110. data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +21 -23
  111. data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +4 -4
  112. data/src/ruby_supportlib/phusion_passenger/standalone/status_command.rb +5 -5
  113. data/src/ruby_supportlib/phusion_passenger/standalone/stop_command.rb +6 -6
  114. data/src/ruby_supportlib/phusion_passenger/standalone/version_command.rb +1 -1
  115. data/src/ruby_supportlib/phusion_passenger/utils/download.rb +12 -11
  116. data/src/ruby_supportlib/phusion_passenger/utils/file_system_watcher.rb +9 -9
  117. data/src/ruby_supportlib/phusion_passenger/utils/hosts_file_parser.rb +8 -7
  118. data/src/ruby_supportlib/phusion_passenger/utils/json.rb +7 -6
  119. data/src/ruby_supportlib/phusion_passenger/utils/native_support_utils.rb +4 -4
  120. data/src/ruby_supportlib/phusion_passenger/utils/progress_bar.rb +1 -1
  121. data/src/ruby_supportlib/phusion_passenger/utils/shellwords.rb +1 -1
  122. data/src/ruby_supportlib/phusion_passenger/utils/strscan.rb +1 -0
  123. data/src/ruby_supportlib/phusion_passenger/utils/tee_input.rb +1 -0
  124. data/src/ruby_supportlib/phusion_passenger/utils/terminal_choice_menu.rb +13 -12
  125. data/src/ruby_supportlib/phusion_passenger/utils/tmpio.rb +2 -3
  126. data/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb +7 -7
  127. data/src/ruby_supportlib/phusion_passenger/utils.rb +17 -16
  128. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +1 -0
  129. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +3 -2
  130. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +2 -1
  131. data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/utils.rb +3 -2
  132. data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +13 -13
  133. data/src/ruby_supportlib/phusion_passenger.rb +23 -22
  134. metadata +2 -2
@@ -109,792 +109,792 @@ NGINX_CONFIGURATION_OPTIONS = [
109
109
  ###### Global configuration ######
110
110
 
111
111
  {
112
- :name => 'passenger_root',
113
- :scope => :global,
114
- :type => :string,
115
- :context => [:main],
116
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET',
117
- :field => 'root_dir'
112
+ name: 'passenger_root',
113
+ scope: :global,
114
+ type: :string,
115
+ context: [ :main ],
116
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
117
+ field: 'root_dir',
118
118
  },
119
119
  {
120
- :name => 'passenger_ctl',
121
- :scope => :global,
122
- :type => :string_keyval,
123
- :context => [:main],
124
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
120
+ name: 'passenger_ctl',
121
+ scope: :global,
122
+ type: :string_keyval,
123
+ context: [ :main ],
124
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
125
125
  },
126
126
  {
127
- :name => 'passenger_abort_on_startup_error',
128
- :scope => :global,
129
- :type => :flag,
130
- :default => false,
131
- :context => [:main],
132
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
127
+ name: 'passenger_abort_on_startup_error',
128
+ scope: :global,
129
+ type: :flag,
130
+ default: false,
131
+ context: [ :main ],
132
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
133
133
  },
134
134
  {
135
- :name => 'passenger_dump_config_manifest',
136
- :scope => :global,
137
- :type => :string,
138
- :context => [:main],
139
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
135
+ name: 'passenger_dump_config_manifest',
136
+ scope: :global,
137
+ type: :string,
138
+ context: [ :main ],
139
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
140
140
  },
141
141
  {
142
- :name => 'passenger_log_level',
143
- :scope => :global,
144
- :type => :uinteger,
145
- :default => DEFAULT_LOG_LEVEL,
146
- :context => [:main],
147
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
142
+ name: 'passenger_log_level',
143
+ scope: :global,
144
+ type: :uinteger,
145
+ default: DEFAULT_LOG_LEVEL,
146
+ context: [ :main ],
147
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
148
148
  },
149
149
  {
150
- :name => 'passenger_log_file',
151
- :scope => :global,
152
- :type => :string,
153
- :dynamic_default => "Nginx's global error log",
154
- :context => [:main],
155
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
150
+ name: 'passenger_log_file',
151
+ scope: :global,
152
+ type: :string,
153
+ dynamic_default: "Nginx's global error log",
154
+ context: [ :main ],
155
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
156
156
  },
157
157
  {
158
- :name => 'passenger_disable_log_prefix',
159
- :scope => :global,
160
- :type => :flag,
161
- :default => false,
162
- :context => [:main],
163
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
158
+ name: 'passenger_disable_log_prefix',
159
+ scope: :global,
160
+ type: :flag,
161
+ default: false,
162
+ context: [ :main ],
163
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
164
164
  },
165
165
  {
166
- :name => 'passenger_file_descriptor_log_file',
167
- :scope => :global,
168
- :type => :string,
169
- :context => [:main],
170
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
166
+ name: 'passenger_file_descriptor_log_file',
167
+ scope: :global,
168
+ type: :string,
169
+ context: [ :main ],
170
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
171
171
  },
172
172
  {
173
- :name => 'passenger_data_buffer_dir',
174
- :scope => :global,
175
- :type => :string,
176
- :dynamic_default => '$TMPDIR, or if not given, /tmp',
177
- :context => [:main],
178
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
173
+ name: 'passenger_data_buffer_dir',
174
+ scope: :global,
175
+ type: :string,
176
+ dynamic_default: '$TMPDIR, or if not given, /tmp',
177
+ context: [ :main ],
178
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
179
179
  },
180
180
  {
181
- :name => 'passenger_socket_backlog',
182
- :scope => :global,
183
- :type => :uinteger,
184
- :default => DEFAULT_SOCKET_BACKLOG,
185
- :context => [:main],
186
- :struct => "NGX_HTTP_MAIN_CONF_OFFSET"
181
+ name: 'passenger_socket_backlog',
182
+ scope: :global,
183
+ type: :uinteger,
184
+ default: DEFAULT_SOCKET_BACKLOG,
185
+ context: [ :main ],
186
+ struct: "NGX_HTTP_MAIN_CONF_OFFSET",
187
187
  },
188
188
  {
189
- :name => 'passenger_core_file_descriptor_ulimit',
190
- :scope => :global,
191
- :type => :uinteger,
192
- :dynamic_default => 'The ulimits environment under which Nginx was started',
193
- :context => [:main],
194
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
189
+ name: 'passenger_core_file_descriptor_ulimit',
190
+ scope: :global,
191
+ type: :uinteger,
192
+ dynamic_default: 'The ulimits environment under which Nginx was started',
193
+ context: [ :main ],
194
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
195
195
  },
196
196
  {
197
- :name => 'passenger_disable_security_update_check',
198
- :scope => :global,
199
- :type => :flag,
200
- :default => false,
201
- :context => [:main],
202
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
197
+ name: 'passenger_disable_security_update_check',
198
+ scope: :global,
199
+ type: :flag,
200
+ default: false,
201
+ context: [ :main ],
202
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
203
203
  },
204
204
  {
205
- :name => 'passenger_security_update_check_proxy',
206
- :scope => :global,
207
- :type => :string,
208
- :context => [:main],
209
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
205
+ name: 'passenger_security_update_check_proxy',
206
+ scope: :global,
207
+ type: :string,
208
+ context: [ :main ],
209
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
210
210
  },
211
211
  {
212
- :name => 'passenger_disable_anonymous_telemetry',
213
- :scope => :global,
214
- :type => :flag,
215
- :default => false,
216
- :context => [:main],
217
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
212
+ name: 'passenger_disable_anonymous_telemetry',
213
+ scope: :global,
214
+ type: :flag,
215
+ default: false,
216
+ context: [ :main ],
217
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
218
218
  },
219
219
  {
220
- :name => 'passenger_anonymous_telemetry_proxy',
221
- :scope => :global,
222
- :type => :string,
223
- :context => [:main],
224
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
220
+ name: 'passenger_anonymous_telemetry_proxy',
221
+ scope: :global,
222
+ type: :string,
223
+ context: [ :main ],
224
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
225
225
  },
226
226
  {
227
- :name => 'passenger_pre_start',
228
- :scope => :global,
229
- :type => :string_array,
230
- :context => [:main],
231
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET',
232
- :field => 'prestart_uris'
227
+ name: 'passenger_pre_start',
228
+ scope: :global,
229
+ type: :string_array,
230
+ context: [ :main ],
231
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
232
+ field: 'prestart_uris',
233
233
  },
234
234
  {
235
- :name => 'passenger_instance_registry_dir',
236
- :scope => :global,
237
- :type => :string,
238
- :dynamic_default => 'Either /var/run/passenger-instreg, $TMPDIR, or /tmp (see docs)',
239
- :context => [:main],
240
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
235
+ name: 'passenger_instance_registry_dir',
236
+ scope: :global,
237
+ type: :string,
238
+ dynamic_default: 'Either /var/run/passenger-instreg, $TMPDIR, or /tmp (see docs)',
239
+ context: [ :main ],
240
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
241
241
  },
242
242
  {
243
- :name => 'passenger_spawn_dir',
244
- :scope => :global,
245
- :type => :string,
246
- :dynamic_default => 'Either $TMPDIR or /tmp',
247
- :context => [:main],
248
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
243
+ name: 'passenger_spawn_dir',
244
+ scope: :global,
245
+ type: :string,
246
+ dynamic_default: 'Either $TMPDIR or /tmp',
247
+ context: [ :main ],
248
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
249
249
  },
250
250
  {
251
- :name => 'passenger_turbocaching',
252
- :scope => :global,
253
- :type => :flag,
254
- :default => true,
255
- :context => [:main],
256
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
251
+ name: 'passenger_turbocaching',
252
+ scope: :global,
253
+ type: :flag,
254
+ default: true,
255
+ context: [ :main ],
256
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
257
257
  },
258
258
  {
259
- :name => 'passenger_old_routing',
260
- :scope => :global,
261
- :type => :flag,
262
- :default => false,
263
- :context => [:main],
264
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
259
+ name: 'passenger_old_routing',
260
+ scope: :global,
261
+ type: :flag,
262
+ default: false,
263
+ context: [ :main ],
264
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
265
265
  },
266
266
  {
267
- :name => 'passenger_user_switching',
268
- :scope => :global,
269
- :type => :flag,
270
- :default => true,
271
- :context => [:main],
272
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
267
+ name: 'passenger_user_switching',
268
+ scope: :global,
269
+ type: :flag,
270
+ default: true,
271
+ context: [ :main ],
272
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
273
273
  },
274
274
  {
275
- :name => 'passenger_default_user',
276
- :scope => :global,
277
- :type => :string,
278
- :default => PASSENGER_DEFAULT_USER,
279
- :context => [:main],
280
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
275
+ name: 'passenger_default_user',
276
+ scope: :global,
277
+ type: :string,
278
+ default: PASSENGER_DEFAULT_USER,
279
+ context: [ :main ],
280
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
281
281
  },
282
282
  {
283
- :name => 'passenger_default_group',
284
- :scope => :global,
285
- :type => :string,
286
- :dynamic_default => 'The primary group of passenger_default_user',
287
- :context => [:main],
288
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
283
+ name: 'passenger_default_group',
284
+ scope: :global,
285
+ type: :string,
286
+ dynamic_default: 'The primary group of passenger_default_user',
287
+ context: [ :main ],
288
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
289
289
  },
290
290
  {
291
- :name => 'passenger_max_pool_size',
292
- :scope => :global,
293
- :type => :uinteger,
294
- :default => DEFAULT_MAX_POOL_SIZE,
295
- :context => [:main],
296
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
291
+ name: 'passenger_max_pool_size',
292
+ scope: :global,
293
+ type: :uinteger,
294
+ default: DEFAULT_MAX_POOL_SIZE,
295
+ context: [ :main ],
296
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
297
297
  },
298
298
  {
299
- :name => 'passenger_pool_idle_time',
300
- :scope => :global,
301
- :type => :uinteger,
302
- :default => DEFAULT_POOL_IDLE_TIME,
303
- :context => [:main],
304
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
299
+ name: 'passenger_pool_idle_time',
300
+ scope: :global,
301
+ type: :uinteger,
302
+ default: DEFAULT_POOL_IDLE_TIME,
303
+ context: [ :main ],
304
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
305
305
  },
306
306
  {
307
- :name => 'passenger_response_buffer_high_watermark',
308
- :scope => :global,
309
- :type => :uinteger,
310
- :default => DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK,
311
- :context => [:main],
312
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
307
+ name: 'passenger_response_buffer_high_watermark',
308
+ scope: :global,
309
+ type: :uinteger,
310
+ default: DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK,
311
+ context: [ :main ],
312
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
313
313
  },
314
314
  {
315
- :name => 'passenger_stat_throttle_rate',
316
- :scope => :global,
317
- :type => :uinteger,
318
- :default => DEFAULT_STAT_THROTTLE_RATE,
319
- :context => [:main],
320
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
315
+ name: 'passenger_stat_throttle_rate',
316
+ scope: :global,
317
+ type: :uinteger,
318
+ default: DEFAULT_STAT_THROTTLE_RATE,
319
+ context: [ :main ],
320
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
321
321
  },
322
322
  {
323
- :name => 'passenger_show_version_in_header',
324
- :scope => :global,
325
- :type => :flag,
326
- :default => true,
327
- :context => [:main],
328
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
323
+ name: 'passenger_show_version_in_header',
324
+ scope: :global,
325
+ type: :flag,
326
+ default: true,
327
+ context: [ :main ],
328
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
329
329
  },
330
330
  {
331
- :name => 'passenger_app_file_descriptor_ulimit',
332
- :scope => :global,
333
- :type => :uinteger,
334
- :dynamic_default => 'passenger_core_file_descriptor_ulimit',
335
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
331
+ name: 'passenger_app_file_descriptor_ulimit',
332
+ scope: :global,
333
+ type: :uinteger,
334
+ dynamic_default: 'passenger_core_file_descriptor_ulimit',
335
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
336
336
  },
337
337
  {
338
- :name => 'passenger_max_instances_per_app',
339
- :scope => :global,
340
- :context => [:main],
341
- :type => :uinteger,
342
- :header => nil,
343
- :default => 0,
344
- :struct => 'NGX_HTTP_MAIN_CONF_OFFSET'
338
+ name: 'passenger_max_instances_per_app',
339
+ scope: :global,
340
+ context: [ :main ],
341
+ type: :uinteger,
342
+ header: nil,
343
+ default: 0,
344
+ struct: 'NGX_HTTP_MAIN_CONF_OFFSET',
345
345
  },
346
346
 
347
347
 
348
348
  ###### Per-application configuration ######
349
349
 
350
350
  {
351
- :name => 'passenger_ruby',
352
- :scope => :application,
353
- :type => :string,
354
- :default => DEFAULT_RUBY
351
+ name: 'passenger_ruby',
352
+ scope: :application,
353
+ type: :string,
354
+ default: DEFAULT_RUBY,
355
355
  },
356
356
  {
357
- :name => 'passenger_python',
358
- :scope => :application,
359
- :type => :string,
360
- :default => DEFAULT_PYTHON
357
+ name: 'passenger_python',
358
+ scope: :application,
359
+ type: :string,
360
+ default: DEFAULT_PYTHON,
361
361
  },
362
362
  {
363
- :name => 'passenger_nodejs',
364
- :scope => :application,
365
- :type => :string,
366
- :default => DEFAULT_NODEJS
363
+ name: 'passenger_nodejs',
364
+ scope: :application,
365
+ type: :string,
366
+ default: DEFAULT_NODEJS,
367
367
  },
368
368
  {
369
- :name => 'passenger_meteor_app_settings',
370
- :scope => :application,
371
- :type => :string
369
+ name: 'passenger_meteor_app_settings',
370
+ scope: :application,
371
+ type: :string,
372
372
  },
373
373
  {
374
- :name => 'passenger_app_env',
375
- :scope => :application,
376
- :type => :string,
377
- :default => 'production',
378
- :field => 'environment'
374
+ name: 'passenger_app_env',
375
+ scope: :application,
376
+ type: :string,
377
+ default: 'production',
378
+ field: 'environment',
379
379
  },
380
380
  {
381
- :name => 'passenger_friendly_error_pages',
382
- :scope => :application,
383
- :type => :flag,
384
- :dynamic_default => 'On if passenger_app_env is development, off otherwise'
381
+ name: 'passenger_friendly_error_pages',
382
+ scope: :application,
383
+ type: :flag,
384
+ dynamic_default: 'On if passenger_app_env is development, off otherwise',
385
385
  },
386
386
  {
387
- :name => 'passenger_custom_error_page',
388
- :scope => :application,
389
- :type => :string
387
+ name: 'passenger_custom_error_page',
388
+ scope: :application,
389
+ type: :string,
390
390
  },
391
391
  {
392
- :name => 'passenger_min_instances',
393
- :scope => :application,
394
- :type => :uinteger,
395
- :default => 1,
396
- :header => 'PASSENGER_MIN_PROCESSES'
392
+ name: 'passenger_min_instances',
393
+ scope: :application,
394
+ type: :uinteger,
395
+ default: 1,
396
+ header: 'PASSENGER_MIN_PROCESSES',
397
397
  },
398
398
  {
399
- :name => 'passenger_start_timeout',
400
- :scope => :application,
401
- :type => :uinteger,
402
- :default => DEFAULT_START_TIMEOUT / 1000
399
+ name: 'passenger_start_timeout',
400
+ scope: :application,
401
+ type: :uinteger,
402
+ default: DEFAULT_START_TIMEOUT / 1000,
403
403
  },
404
404
  {
405
- :name => 'passenger_app_connect_timeout',
406
- :scope => :application,
407
- :type => :uinteger,
408
- :default => DEFAULT_CONNECT_TIMEOUT
405
+ name: 'passenger_app_connect_timeout',
406
+ scope: :application,
407
+ type: :uinteger,
408
+ default: DEFAULT_CONNECT_TIMEOUT,
409
409
  },
410
410
  {
411
- :name => 'passenger_user',
412
- :scope => :application,
413
- :type => :string,
414
- :dynamic_default => 'See the user account sandboxing rules'
411
+ name: 'passenger_user',
412
+ scope: :application,
413
+ type: :string,
414
+ dynamic_default: 'See the user account sandboxing rules',
415
415
  },
416
416
  {
417
- :name => 'passenger_group',
418
- :scope => :application,
419
- :type => :string,
420
- :dynamic_default => 'See the user account sandboxing rules'
417
+ name: 'passenger_group',
418
+ scope: :application,
419
+ type: :string,
420
+ dynamic_default: 'See the user account sandboxing rules',
421
421
  },
422
422
  {
423
- :name => 'passenger_app_group_name',
424
- :scope => :application,
425
- :type => :string,
426
- :dynamic_default => 'passenger_app_root plus passenger_app_env'
423
+ name: 'passenger_app_group_name',
424
+ scope: :application,
425
+ type: :string,
426
+ dynamic_default: 'passenger_app_root plus passenger_app_env',
427
427
  },
428
428
  {
429
- :name => 'passenger_monitor_log_file',
430
- :scope => :application,
431
- :type => :string_array,
432
- :header => nil
429
+ name: 'passenger_monitor_log_file',
430
+ scope: :application,
431
+ type: :string_array,
432
+ header: nil,
433
433
  },
434
434
  {
435
- :name => 'passenger_app_root',
436
- :scope => :application,
437
- :type => :string,
438
- :dynamic_default => "Parent directory of the associated Nginx virtual host's root directory"
435
+ name: 'passenger_app_root',
436
+ scope: :application,
437
+ type: :string,
438
+ dynamic_default: "Parent directory of the associated Nginx virtual host's root directory",
439
439
  },
440
440
  {
441
- :name => 'passenger_app_rights',
442
- :scope => :application,
443
- :type => :string
441
+ name: 'passenger_app_rights',
442
+ scope: :application,
443
+ type: :string,
444
444
  },
445
445
  {
446
- :name => 'passenger_debugger',
447
- :scope => :application,
448
- :type => :flag,
449
- :default => false
446
+ name: 'passenger_debugger',
447
+ scope: :application,
448
+ type: :flag,
449
+ default: false,
450
450
  },
451
451
  {
452
- :name => 'passenger_max_preloader_idle_time',
453
- :scope => :application,
454
- :type => :integer,
455
- :default => DEFAULT_MAX_PRELOADER_IDLE_TIME
452
+ name: 'passenger_max_preloader_idle_time',
453
+ scope: :application,
454
+ type: :integer,
455
+ default: DEFAULT_MAX_PRELOADER_IDLE_TIME,
456
456
  },
457
457
  {
458
- :name => 'passenger_env_var',
459
- :scope => :application,
460
- :type => :string_keyval,
461
- :field => 'env_vars',
462
- :header => nil
458
+ name: 'passenger_env_var',
459
+ scope: :application,
460
+ type: :string_keyval,
461
+ field: 'env_vars',
462
+ header: nil,
463
463
  },
464
464
  {
465
- :name => 'passenger_spawn_method',
466
- :scope => :application,
467
- :dynamic_default => "'smart' for Ruby apps, 'direct' for all other apps",
468
- :type => :string
465
+ name: 'passenger_spawn_method',
466
+ scope: :application,
467
+ dynamic_default: "'smart' for Ruby apps, 'direct' for all other apps",
468
+ type: :string,
469
469
  },
470
470
  {
471
- :name => 'passenger_direct_instance_request_address',
472
- :scope => :application,
473
- :default => DEFAULT_BIND_ADDRESS,
474
- :type => :string
471
+ name: 'passenger_direct_instance_request_address',
472
+ scope: :application,
473
+ default: DEFAULT_BIND_ADDRESS,
474
+ type: :string,
475
475
  },
476
476
  {
477
- :name => 'passenger_load_shell_envvars',
478
- :scope => :application,
479
- :type => :flag,
480
- :default => true
477
+ name: 'passenger_load_shell_envvars',
478
+ scope: :application,
479
+ type: :flag,
480
+ default: true,
481
481
  },
482
482
  {
483
- :name => 'passenger_preload_bundler',
484
- :scope => :application,
485
- :type => :flag,
486
- :default => false
483
+ name: 'passenger_preload_bundler',
484
+ scope: :application,
485
+ type: :flag,
486
+ default: false,
487
487
  },
488
488
  {
489
- :name => 'passenger_max_request_queue_size',
490
- :scope => :application,
491
- :type => :uinteger,
492
- :default => DEFAULT_MAX_REQUEST_QUEUE_SIZE
489
+ name: 'passenger_max_request_queue_size',
490
+ scope: :application,
491
+ type: :uinteger,
492
+ default: DEFAULT_MAX_REQUEST_QUEUE_SIZE,
493
493
  },
494
494
  {
495
- :name => 'passenger_app_type',
496
- :scope => :application,
497
- :type => :string,
498
- :dynamic_default => 'Autodetected',
499
- :header => nil
495
+ name: 'passenger_app_type',
496
+ scope: :application,
497
+ type: :string,
498
+ dynamic_default: 'Autodetected',
499
+ header: nil,
500
500
  },
501
501
  {
502
- :name => 'passenger_startup_file',
503
- :scope => :application,
504
- :type => :string,
505
- :dynamic_default => 'Autodetected'
502
+ name: 'passenger_startup_file',
503
+ scope: :application,
504
+ type: :string,
505
+ dynamic_default: 'Autodetected',
506
506
  },
507
507
  {
508
- :name => 'passenger_app_start_command',
509
- :scope => :application,
510
- :type => :string,
511
- :header => nil
508
+ name: 'passenger_app_start_command',
509
+ scope: :application,
510
+ type: :string,
511
+ header: nil,
512
512
  },
513
513
  {
514
- :name => 'passenger_restart_dir',
515
- :scope => :application,
516
- :type => :string,
517
- :default => 'tmp'
514
+ name: 'passenger_restart_dir',
515
+ scope: :application,
516
+ type: :string,
517
+ default: 'tmp',
518
518
  },
519
519
  {
520
- :name => 'passenger_abort_websockets_on_process_shutdown',
521
- :scope => :application,
522
- :type => :flag,
523
- :default => true
520
+ name: 'passenger_abort_websockets_on_process_shutdown',
521
+ scope: :application,
522
+ type: :flag,
523
+ default: true,
524
524
  },
525
525
  {
526
- :name => 'passenger_force_max_concurrent_requests_per_process',
527
- :scope => :application,
528
- :type => :integer,
529
- :default => -1
526
+ name: 'passenger_force_max_concurrent_requests_per_process',
527
+ scope: :application,
528
+ type: :integer,
529
+ default: -1,
530
530
  },
531
531
 
532
532
  ###### Per-location/per-request configuration ######
533
533
 
534
534
  {
535
- :name => 'passenger_enabled',
536
- :scope => :location,
537
- :type => :flag,
538
- :default => false,
539
- :function => 'passenger_enabled',
540
- :field => 'enabled',
541
- :header => nil
535
+ name: 'passenger_enabled',
536
+ scope: :location,
537
+ type: :flag,
538
+ default: false,
539
+ function: 'passenger_enabled',
540
+ field: 'enabled',
541
+ header: nil,
542
542
  },
543
543
  {
544
- :name => 'passenger_max_requests',
545
- :scope => :location,
546
- :type => :uinteger,
547
- :default => 0
544
+ name: 'passenger_max_requests',
545
+ scope: :location,
546
+ type: :uinteger,
547
+ default: 0,
548
548
  },
549
549
  {
550
- :name => 'passenger_base_uri',
551
- :scope => :location,
552
- :type => :string_array,
553
- :field => 'base_uris',
554
- :header => nil
550
+ name: 'passenger_base_uri',
551
+ scope: :location,
552
+ type: :string_array,
553
+ field: 'base_uris',
554
+ header: nil,
555
555
  },
556
556
  {
557
- :name => 'passenger_document_root',
558
- :scope => :location,
559
- :type => :string,
560
- :header => nil
557
+ name: 'passenger_document_root',
558
+ scope: :location,
559
+ type: :string,
560
+ header: nil,
561
561
  },
562
562
  {
563
- :name => 'passenger_temp_path',
564
- :scope => :location,
565
- :type => :string,
566
- :function => 'ngx_conf_set_path_slot',
567
- :field => 'upstream_config.temp_path',
568
- :auto_generate_nginx_tracking_code => false
563
+ name: 'passenger_temp_path',
564
+ scope: :location,
565
+ type: :string,
566
+ function: 'ngx_conf_set_path_slot',
567
+ field: 'upstream_config.temp_path',
568
+ auto_generate_nginx_tracking_code: false,
569
569
  },
570
570
  {
571
- :name => 'passenger_ignore_headers',
572
- :scope => :location,
573
- :take => 'NGX_CONF_1MORE',
574
- :function => 'ngx_conf_set_bitmask_slot',
575
- :field => 'upstream_config.ignore_headers',
576
- :post => '&ngx_http_upstream_ignore_headers_masks',
577
- :auto_generate_nginx_tracking_code => false
571
+ name: 'passenger_ignore_headers',
572
+ scope: :location,
573
+ take: 'NGX_CONF_1MORE',
574
+ function: 'ngx_conf_set_bitmask_slot',
575
+ field: 'upstream_config.ignore_headers',
576
+ post: '&ngx_http_upstream_ignore_headers_masks',
577
+ auto_generate_nginx_tracking_code: false,
578
578
  },
579
579
  {
580
- :name => 'passenger_set_header',
581
- :scope => :location,
582
- :type => :string_keyval,
583
- :field => 'headers_source',
584
- :header => nil,
585
- :auto_generate_nginx_create_code => false,
586
- :auto_generate_nginx_merge_code => false
580
+ name: 'passenger_set_header',
581
+ scope: :location,
582
+ type: :string_keyval,
583
+ field: 'headers_source',
584
+ header: nil,
585
+ auto_generate_nginx_create_code: false,
586
+ auto_generate_nginx_merge_code: false,
587
587
  },
588
588
  {
589
- :name => 'passenger_pass_header',
590
- :scope => :location,
591
- :type => :string_array,
592
- :field => 'upstream_config.pass_headers'
589
+ name: 'passenger_pass_header',
590
+ scope: :location,
591
+ type: :string_array,
592
+ field: 'upstream_config.pass_headers',
593
593
  },
594
594
  {
595
- :name => 'passenger_headers_hash_max_size',
596
- :scope => :location,
597
- :type => :uinteger,
598
- :header => nil,
599
- :default => 512
595
+ name: 'passenger_headers_hash_max_size',
596
+ scope: :location,
597
+ type: :uinteger,
598
+ header: nil,
599
+ default: 512,
600
600
  },
601
601
  {
602
- :name => 'passenger_headers_hash_bucket_size',
603
- :scope => :location,
604
- :type => :uinteger,
605
- :header => nil,
606
- :default => 64
602
+ name: 'passenger_headers_hash_bucket_size',
603
+ scope: :location,
604
+ type: :uinteger,
605
+ header: nil,
606
+ default: 64,
607
607
  },
608
608
  {
609
- :name => 'passenger_ignore_client_abort',
610
- :scope => :location,
611
- :type => :flag,
612
- :default => false,
613
- :field => 'upstream_config.ignore_client_abort'
609
+ name: 'passenger_ignore_client_abort',
610
+ scope: :location,
611
+ type: :flag,
612
+ default: false,
613
+ field: 'upstream_config.ignore_client_abort',
614
614
  },
615
615
  {
616
- :name => 'passenger_read_timeout',
617
- :scope => :location,
618
- :type => :msec,
619
- :field => 'upstream_config.read_timeout'
616
+ name: 'passenger_read_timeout',
617
+ scope: :location,
618
+ type: :msec,
619
+ field: 'upstream_config.read_timeout',
620
620
  },
621
621
  {
622
- :name => 'passenger_buffer_response',
623
- :scope => :location,
624
- :type => :flag,
625
- :default => false,
626
- :field => 'upstream_config.buffering'
622
+ name: 'passenger_buffer_response',
623
+ scope: :location,
624
+ type: :flag,
625
+ default: false,
626
+ field: 'upstream_config.buffering',
627
627
  },
628
628
  {
629
- :name => 'passenger_buffer_size',
630
- :scope => :location,
631
- :dynamic_default => '4k|8k',
632
- :take => 'NGX_CONF_TAKE1',
633
- :function => 'ngx_conf_set_size_slot',
634
- :field => 'upstream_config.buffer_size',
635
- :auto_generate_nginx_tracking_code => false
629
+ name: 'passenger_buffer_size',
630
+ scope: :location,
631
+ dynamic_default: '4k|8k',
632
+ take: 'NGX_CONF_TAKE1',
633
+ function: 'ngx_conf_set_size_slot',
634
+ field: 'upstream_config.buffer_size',
635
+ auto_generate_nginx_tracking_code: false,
636
636
  },
637
637
  {
638
- :name => 'passenger_buffers',
639
- :scope => :location,
640
- :dynamic_default => '8 4k|8k',
641
- :take => 'NGX_CONF_TAKE2',
642
- :function => 'ngx_conf_set_bufs_slot',
643
- :field => 'upstream_config.bufs',
644
- :auto_generate_nginx_tracking_code => false
638
+ name: 'passenger_buffers',
639
+ scope: :location,
640
+ dynamic_default: '8 4k|8k',
641
+ take: 'NGX_CONF_TAKE2',
642
+ function: 'ngx_conf_set_bufs_slot',
643
+ field: 'upstream_config.bufs',
644
+ auto_generate_nginx_tracking_code: false,
645
645
  },
646
646
  {
647
- :name => 'passenger_busy_buffers_size',
648
- :scope => :location,
649
- :dynamic_default => '8k|16k',
650
- :take => 'NGX_CONF_TAKE1',
651
- :function => 'ngx_conf_set_size_slot',
652
- :field => 'upstream_config.busy_buffers_size_conf',
653
- :auto_generate_nginx_tracking_code => false
647
+ name: 'passenger_busy_buffers_size',
648
+ scope: :location,
649
+ dynamic_default: '8k|16k',
650
+ take: 'NGX_CONF_TAKE1',
651
+ function: 'ngx_conf_set_size_slot',
652
+ field: 'upstream_config.busy_buffers_size_conf',
653
+ auto_generate_nginx_tracking_code: false,
654
654
  },
655
655
  {
656
- :name => 'passenger_request_buffering',
657
- :scope => :location,
658
- :type => :flag,
659
- :default => true,
660
- :field => 'upstream_config.request_buffering',
661
- :function => 'passenger_conf_set_request_buffering'
656
+ name: 'passenger_request_buffering',
657
+ scope: :location,
658
+ type: :flag,
659
+ default: true,
660
+ field: 'upstream_config.request_buffering',
661
+ function: 'passenger_conf_set_request_buffering',
662
662
  },
663
663
  {
664
- :name => 'passenger_intercept_errors',
665
- :scope => :location,
666
- :type => :flag,
667
- :default => false,
668
- :field => 'upstream_config.intercept_errors'
664
+ name: 'passenger_intercept_errors',
665
+ scope: :location,
666
+ type: :flag,
667
+ default: false,
668
+ field: 'upstream_config.intercept_errors',
669
669
  },
670
670
  {
671
- :name => 'passenger_request_queue_overflow_status_code',
672
- :scope => :location,
673
- :type => :integer,
674
- :default => 503
671
+ name: 'passenger_request_queue_overflow_status_code',
672
+ scope: :location,
673
+ type: :integer,
674
+ default: 503,
675
675
  },
676
676
  {
677
- :name => 'passenger_spawn_exception_status_code',
678
- :scope => :location,
679
- :type => :integer,
680
- :default => 500
677
+ name: 'passenger_spawn_exception_status_code',
678
+ scope: :location,
679
+ type: :integer,
680
+ default: 500,
681
681
  },
682
682
  {
683
- :name => 'passenger_buffer_upload',
684
- :type => :flag,
685
- :scope => :location,
686
- :default => false,
687
- :header => nil
683
+ name: 'passenger_buffer_upload',
684
+ type: :flag,
685
+ scope: :location,
686
+ default: false,
687
+ header: nil,
688
688
  },
689
689
  {
690
- :name => 'passenger_sticky_sessions',
691
- :scope => :location,
692
- :type => :flag,
693
- :default => false
690
+ name: 'passenger_sticky_sessions',
691
+ scope: :location,
692
+ type: :flag,
693
+ default: false,
694
694
  },
695
695
  {
696
- :name => 'passenger_sticky_sessions_cookie_name',
697
- :scope => :location,
698
- :type => :string,
699
- :default => DEFAULT_STICKY_SESSIONS_COOKIE_NAME
696
+ name: 'passenger_sticky_sessions_cookie_name',
697
+ scope: :location,
698
+ type: :string,
699
+ default: DEFAULT_STICKY_SESSIONS_COOKIE_NAME,
700
700
  },
701
701
  {
702
- :name => 'passenger_sticky_sessions_cookie_attributes',
703
- :scope => :location,
704
- :type => :string,
705
- :default => DEFAULT_STICKY_SESSIONS_COOKIE_ATTRIBUTES
702
+ name: 'passenger_sticky_sessions_cookie_attributes',
703
+ scope: :location,
704
+ type: :string,
705
+ default: DEFAULT_STICKY_SESSIONS_COOKIE_ATTRIBUTES,
706
706
  },
707
707
  {
708
- :name => 'passenger_vary_turbocache_by_cookie',
709
- :scope => :location,
710
- :type => :string
708
+ name: 'passenger_vary_turbocache_by_cookie',
709
+ scope: :location,
710
+ type: :string,
711
711
  },
712
712
 
713
713
 
714
714
  ###### Enterprise features (placeholders in OSS) ######
715
715
 
716
716
  {
717
- :context => [:main],
718
- :name => 'passenger_fly_with',
719
- :scope => :global,
720
- :type => :string,
721
- :struct => "NGX_HTTP_MAIN_CONF_OFFSET",
722
- :function => 'passenger_enterprise_only',
723
- :field => nil
717
+ context: [ :main ],
718
+ name: 'passenger_fly_with',
719
+ scope: :global,
720
+ type: :string,
721
+ struct: "NGX_HTTP_MAIN_CONF_OFFSET",
722
+ function: 'passenger_enterprise_only',
723
+ field: nil,
724
724
  },
725
725
  {
726
- :name => 'passenger_max_instances',
727
- :scope => :application,
728
- :type => :integer,
729
- :function => 'passenger_enterprise_only',
730
- :field => nil
726
+ name: 'passenger_max_instances',
727
+ scope: :application,
728
+ type: :integer,
729
+ function: 'passenger_enterprise_only',
730
+ field: nil,
731
731
  },
732
732
  {
733
- :name => 'passenger_memory_limit',
734
- :scope => :application,
735
- :type => :integer,
736
- :function => 'passenger_enterprise_only',
737
- :field => nil
733
+ name: 'passenger_memory_limit',
734
+ scope: :application,
735
+ type: :integer,
736
+ function: 'passenger_enterprise_only',
737
+ field: nil,
738
738
  },
739
739
  {
740
- :name => 'passenger_concurrency_model',
741
- :scope => :application,
742
- :type => :string,
743
- :function => 'passenger_enterprise_only',
744
- :field => nil
740
+ name: 'passenger_concurrency_model',
741
+ scope: :application,
742
+ type: :string,
743
+ function: 'passenger_enterprise_only',
744
+ field: nil,
745
745
  },
746
746
  {
747
- :name => 'passenger_thread_count',
748
- :scope => :application,
749
- :type => :integer,
750
- :function => 'passenger_enterprise_only',
751
- :field => nil
747
+ name: 'passenger_thread_count',
748
+ scope: :application,
749
+ type: :integer,
750
+ function: 'passenger_enterprise_only',
751
+ field: nil,
752
752
  },
753
753
  {
754
- :name => 'passenger_rolling_restarts',
755
- :scope => :application,
756
- :type => :flag,
757
- :function => 'passenger_enterprise_only',
758
- :field => nil
754
+ name: 'passenger_rolling_restarts',
755
+ scope: :application,
756
+ type: :flag,
757
+ function: 'passenger_enterprise_only',
758
+ field: nil,
759
759
  },
760
760
  {
761
- :name => 'passenger_resist_deployment_errors',
762
- :scope => :application,
763
- :type => :flag,
764
- :function => 'passenger_enterprise_only',
765
- :field => nil
761
+ name: 'passenger_resist_deployment_errors',
762
+ scope: :application,
763
+ type: :flag,
764
+ function: 'passenger_enterprise_only',
765
+ field: nil,
766
766
  },
767
767
  {
768
- :name => 'passenger_max_request_time',
769
- :scope => :location,
770
- :type => :integer,
771
- :function => 'passenger_enterprise_only',
772
- :field => nil
768
+ name: 'passenger_max_request_time',
769
+ scope: :location,
770
+ type: :integer,
771
+ function: 'passenger_enterprise_only',
772
+ field: nil,
773
773
  },
774
774
  {
775
- :name => 'passenger_max_request_queue_time',
776
- :scope => :location,
777
- :type => :integer,
778
- :function => 'passenger_enterprise_only',
779
- :field => nil
775
+ name: 'passenger_max_request_queue_time',
776
+ scope: :location,
777
+ type: :integer,
778
+ function: 'passenger_enterprise_only',
779
+ field: nil,
780
780
  },
781
781
  {
782
- :name => 'passenger_app_log_file',
783
- :scope => :application,
784
- :type => :string,
785
- :function => 'passenger_enterprise_only',
786
- :dynamic_default => 'passenger_log_file'
782
+ name: 'passenger_app_log_file',
783
+ scope: :application,
784
+ type: :string,
785
+ function: 'passenger_enterprise_only',
786
+ dynamic_default: 'passenger_log_file',
787
787
  },
788
788
 
789
789
 
790
790
  ###### Aliases and backwards compatibility options ######
791
791
 
792
792
  {
793
- :name => 'passenger_debug_log_file',
794
- :alias_for => 'passenger_log_file'
793
+ name: 'passenger_debug_log_file',
794
+ alias_for: 'passenger_log_file',
795
795
  },
796
796
  {
797
- :name => 'rails_spawn_method',
798
- :alias_for => 'passenger_spawn_method'
797
+ name: 'rails_spawn_method',
798
+ alias_for: 'passenger_spawn_method',
799
799
  },
800
800
  {
801
- :name => 'rails_env',
802
- :alias_for => 'passenger_app_env'
801
+ name: 'rails_env',
802
+ alias_for: 'passenger_app_env',
803
803
  },
804
804
  {
805
- :name => 'rack_env',
806
- :alias_for => 'passenger_app_env'
805
+ name: 'rack_env',
806
+ alias_for: 'passenger_app_env',
807
807
  },
808
808
  {
809
- :name => 'rails_app_spawner_idle_time',
810
- :alias_for => 'passenger_max_preloader_idle_time'
809
+ name: 'rails_app_spawner_idle_time',
810
+ alias_for: 'passenger_max_preloader_idle_time',
811
811
  },
812
812
 
813
813
 
814
814
  ###### Deprecated/obsolete options ######
815
815
 
816
816
  {
817
- :name => 'rails_framework_spawner_idle_time',
818
- :scope => :application,
819
- :take => 'NGX_CONF_TAKE1',
820
- :function => 'rails_framework_spawner_idle_time',
821
- :field => nil
817
+ name: 'rails_framework_spawner_idle_time',
818
+ scope: :application,
819
+ take: 'NGX_CONF_TAKE1',
820
+ function: 'rails_framework_spawner_idle_time',
821
+ field: nil,
822
822
  },
823
823
  {
824
- :name => 'passenger_use_global_queue',
825
- :scope => :global,
826
- :take => 'NGX_CONF_FLAG',
827
- :function => 'passenger_use_global_queue',
828
- :field => nil
824
+ name: 'passenger_use_global_queue',
825
+ scope: :global,
826
+ take: 'NGX_CONF_FLAG',
827
+ function: 'passenger_use_global_queue',
828
+ field: nil,
829
829
  },
830
830
  {
831
- :name => 'passenger_analytics_log_user',
832
- :scope => :global,
833
- :context => [:main],
834
- :type => :string,
835
- :function => 'passenger_obsolete_directive',
836
- :field => nil
831
+ name: 'passenger_analytics_log_user',
832
+ scope: :global,
833
+ context: [ :main ],
834
+ type: :string,
835
+ function: 'passenger_obsolete_directive',
836
+ field: nil,
837
837
  },
838
838
  {
839
- :name => 'passenger_analytics_log_group',
840
- :scope => :global,
841
- :context => [:main],
842
- :type => :string,
843
- :function => 'passenger_obsolete_directive',
844
- :field => nil
839
+ name: 'passenger_analytics_log_group',
840
+ scope: :global,
841
+ context: [ :main ],
842
+ type: :string,
843
+ function: 'passenger_obsolete_directive',
844
+ field: nil,
845
845
  },
846
846
  {
847
- :name => 'union_station_gateway_address',
848
- :scope => :global,
849
- :context => [:main],
850
- :type => :string,
851
- :function => 'passenger_obsolete_directive',
852
- :field => nil
847
+ name: 'union_station_gateway_address',
848
+ scope: :global,
849
+ context: [ :main ],
850
+ type: :string,
851
+ function: 'passenger_obsolete_directive',
852
+ field: nil,
853
853
  },
854
854
  {
855
- :name => 'union_station_gateway_port',
856
- :scope => :global,
857
- :context => [:main],
858
- :type => :integer,
859
- :function => 'passenger_obsolete_directive',
860
- :field => nil
855
+ name: 'union_station_gateway_port',
856
+ scope: :global,
857
+ context: [ :main ],
858
+ type: :integer,
859
+ function: 'passenger_obsolete_directive',
860
+ field: nil,
861
861
  },
862
862
  {
863
- :name => 'union_station_gateway_cert',
864
- :scope => :global,
865
- :context => [:main],
866
- :type => :string,
867
- :function => 'passenger_obsolete_directive',
868
- :field => nil
863
+ name: 'union_station_gateway_cert',
864
+ scope: :global,
865
+ context: [ :main ],
866
+ type: :string,
867
+ function: 'passenger_obsolete_directive',
868
+ field: nil,
869
869
  },
870
870
  {
871
- :name => 'union_station_proxy_address',
872
- :scope => :global,
873
- :context => [:main],
874
- :type => :string,
875
- :function => 'passenger_obsolete_directive',
876
- :field => nil
871
+ name: 'union_station_proxy_address',
872
+ scope: :global,
873
+ context: [ :main ],
874
+ type: :string,
875
+ function: 'passenger_obsolete_directive',
876
+ field: nil,
877
877
  },
878
878
  {
879
- :name => 'union_station_key',
880
- :scope => :application,
881
- :type => :string,
882
- :function => 'passenger_obsolete_directive',
883
- :field => nil
879
+ name: 'union_station_key',
880
+ scope: :application,
881
+ type: :string,
882
+ function: 'passenger_obsolete_directive',
883
+ field: nil,
884
884
  },
885
885
  {
886
- :name => 'union_station_support',
887
- :scope => :application,
888
- :type => :flag,
889
- :function => 'passenger_obsolete_directive',
890
- :field => nil
886
+ name: 'union_station_support',
887
+ scope: :application,
888
+ type: :flag,
889
+ function: 'passenger_obsolete_directive',
890
+ field: nil,
891
891
  },
892
892
  {
893
- :name => 'union_station_filter',
894
- :scope => :application,
895
- :take => 'NGX_CONF_TAKE1',
896
- :type => :string_array,
897
- :function => 'passenger_obsolete_directive',
898
- :field => nil
893
+ name: 'union_station_filter',
894
+ scope: :application,
895
+ take: 'NGX_CONF_TAKE1',
896
+ type: :string_array,
897
+ function: 'passenger_obsolete_directive',
898
+ field: nil,
899
899
  },
900
900
  ]