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
@@ -94,747 +94,747 @@ APACHE2_CONFIGURATION_OPTIONS = [
94
94
  ###### Global configuration ######
95
95
 
96
96
  {
97
- :name => 'PassengerRoot',
98
- :type => :string,
99
- :context => :global,
100
- :desc => "The #{PROGRAM_NAME} root folder."
97
+ name: 'PassengerRoot',
98
+ type: :string,
99
+ context: :global,
100
+ desc: "The #{PROGRAM_NAME} root folder.",
101
101
  },
102
102
  {
103
- :name => 'PassengerCtl',
104
- :type => :string_keyval,
105
- :context => :global,
106
- :field => nil,
107
- :function => 'cmd_passenger_ctl',
108
- :desc => "Set advanced #{PROGRAM_NAME} options."
103
+ name: 'PassengerCtl',
104
+ type: :string_keyval,
105
+ context: :global,
106
+ field: nil,
107
+ function: 'cmd_passenger_ctl',
108
+ desc: "Set advanced #{PROGRAM_NAME} options.",
109
109
  },
110
110
  {
111
- :name => 'PassengerDumpConfigManifest',
112
- :type => :string,
113
- :context => :global,
114
- :desc => "Dump the #{SHORT_PROGRAM_NAME} config manifest to the given file, for debugging purposes."
111
+ name: 'PassengerDumpConfigManifest',
112
+ type: :string,
113
+ context: :global,
114
+ desc: "Dump the #{SHORT_PROGRAM_NAME} config manifest to the given file, for debugging purposes.",
115
115
  },
116
116
  {
117
- :name => 'PassengerDefaultRuby',
118
- :type => :string,
119
- :context => :global,
120
- :default => DEFAULT_RUBY,
121
- :default_expr => 'DEFAULT_RUBY',
122
- :desc => "#{PROGRAM_NAME}'s default Ruby interpreter to use."
117
+ name: 'PassengerDefaultRuby',
118
+ type: :string,
119
+ context: :global,
120
+ default: DEFAULT_RUBY,
121
+ default_expr: 'DEFAULT_RUBY',
122
+ desc: "#{PROGRAM_NAME}'s default Ruby interpreter to use.",
123
123
  },
124
124
  {
125
- :name => 'PassengerLogLevel',
126
- :type => :integer,
127
- :context => :global,
128
- :min_value => 0,
129
- :default => DEFAULT_LOG_LEVEL,
130
- :default_expr => 'DEFAULT_LOG_LEVEL',
131
- :desc => "The #{PROGRAM_NAME} log verbosity."
125
+ name: 'PassengerLogLevel',
126
+ type: :integer,
127
+ context: :global,
128
+ min_value: 0,
129
+ default: DEFAULT_LOG_LEVEL,
130
+ default_expr: 'DEFAULT_LOG_LEVEL',
131
+ desc: "The #{PROGRAM_NAME} log verbosity.",
132
132
  },
133
133
  {
134
- :name => 'PassengerLogFile',
135
- :type => :string,
136
- :context => :global,
137
- :dynamic_default => "Apache's global error log",
138
- :desc => "The #{PROGRAM_NAME} log file."
134
+ name: 'PassengerLogFile',
135
+ type: :string,
136
+ context: :global,
137
+ dynamic_default: "Apache's global error log",
138
+ desc: "The #{PROGRAM_NAME} log file.",
139
139
  },
140
140
  {
141
- :name => 'PassengerDisableLogPrefix',
142
- :type => :flag,
143
- :context => :global,
144
- :default => false,
145
- :desc => "Disable prefixing log statements with PID and channel."
141
+ name: 'PassengerDisableLogPrefix',
142
+ type: :flag,
143
+ context: :global,
144
+ default: false,
145
+ desc: "Disable prefixing log statements with PID and channel.",
146
146
  },
147
147
  {
148
- :name => 'PassengerSocketBacklog',
149
- :type => :integer,
150
- :context => :global,
151
- :min_value => 0,
152
- :default => DEFAULT_SOCKET_BACKLOG,
153
- :default_expr => 'DEFAULT_SOCKET_BACKLOG',
154
- :desc => "The #{PROGRAM_NAME} socket backlog."
148
+ name: 'PassengerSocketBacklog',
149
+ type: :integer,
150
+ context: :global,
151
+ min_value: 0,
152
+ default: DEFAULT_SOCKET_BACKLOG,
153
+ default_expr: 'DEFAULT_SOCKET_BACKLOG',
154
+ desc: "The #{PROGRAM_NAME} socket backlog.",
155
155
  },
156
156
  {
157
- :name => 'PassengerFileDescriptorLogFile',
158
- :type => :string,
159
- :context => :global,
160
- :desc => "The #{PROGRAM_NAME} file descriptor log file."
157
+ name: 'PassengerFileDescriptorLogFile',
158
+ type: :string,
159
+ context: :global,
160
+ desc: "The #{PROGRAM_NAME} file descriptor log file.",
161
161
  },
162
162
  {
163
- :name => 'PassengerMaxPoolSize',
164
- :type => :integer,
165
- :context => :global,
166
- :min_value => 1,
167
- :default => DEFAULT_MAX_POOL_SIZE,
168
- :default_expr => 'DEFAULT_MAX_POOL_SIZE',
169
- :desc => "The maximum number of simultaneously alive application processes."
163
+ name: 'PassengerMaxPoolSize',
164
+ type: :integer,
165
+ context: :global,
166
+ min_value: 1,
167
+ default: DEFAULT_MAX_POOL_SIZE,
168
+ default_expr: 'DEFAULT_MAX_POOL_SIZE',
169
+ desc: "The maximum number of simultaneously alive application processes.",
170
170
  },
171
171
  {
172
- :name => 'PassengerPoolIdleTime',
173
- :type => :integer,
174
- :context => :global,
175
- :min_value => 0,
176
- :default => DEFAULT_POOL_IDLE_TIME,
177
- :default_expr => 'DEFAULT_POOL_IDLE_TIME',
178
- :desc => 'The maximum number of seconds that an application may be idle before it gets terminated.'
172
+ name: 'PassengerPoolIdleTime',
173
+ type: :integer,
174
+ context: :global,
175
+ min_value: 0,
176
+ default: DEFAULT_POOL_IDLE_TIME,
177
+ default_expr: 'DEFAULT_POOL_IDLE_TIME',
178
+ desc: 'The maximum number of seconds that an application may be idle before it gets terminated.',
179
179
  },
180
180
  {
181
- :name => 'PassengerResponseBufferHighWatermark',
182
- :type => :integer,
183
- :context => :global,
184
- :min_value => 0,
185
- :default => DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK,
186
- :default_expr => 'DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK',
187
- :desc => "The maximum size of the #{PROGRAM_NAME} response buffer."
181
+ name: 'PassengerResponseBufferHighWatermark',
182
+ type: :integer,
183
+ context: :global,
184
+ min_value: 0,
185
+ default: DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK,
186
+ default_expr: 'DEFAULT_RESPONSE_BUFFER_HIGH_WATERMARK',
187
+ desc: "The maximum size of the #{PROGRAM_NAME} response buffer.",
188
188
  },
189
189
  {
190
- :name => 'PassengerUserSwitching',
191
- :type => :flag,
192
- :context => :global,
193
- :default => true,
194
- :desc => "Whether to enable user switching support in #{PROGRAM_NAME}."
190
+ name: 'PassengerUserSwitching',
191
+ type: :flag,
192
+ context: :global,
193
+ default: true,
194
+ desc: "Whether to enable user switching support in #{PROGRAM_NAME}.",
195
195
  },
196
196
  {
197
- :name => 'PassengerDefaultUser',
198
- :type => :string,
199
- :context => :global,
200
- :default => PASSENGER_DEFAULT_USER,
201
- :default_expr => 'PASSENGER_DEFAULT_USER',
202
- :desc => "The user that #{PROGRAM_NAME} applications must run as when user switching fails or is disabled."
197
+ name: 'PassengerDefaultUser',
198
+ type: :string,
199
+ context: :global,
200
+ default: PASSENGER_DEFAULT_USER,
201
+ default_expr: 'PASSENGER_DEFAULT_USER',
202
+ desc: "The user that #{PROGRAM_NAME} applications must run as when user switching fails or is disabled.",
203
203
  },
204
204
  {
205
- :name => 'PassengerDefaultGroup',
206
- :type => :string,
207
- :context => :global,
208
- :dynamic_default => 'The primary group of PassengerDefaultUser',
209
- :desc => "The group that #{PROGRAM_NAME} applications must run as when user switching fails or is disabled."
205
+ name: 'PassengerDefaultGroup',
206
+ type: :string,
207
+ context: :global,
208
+ dynamic_default: 'The primary group of PassengerDefaultUser',
209
+ desc: "The group that #{PROGRAM_NAME} applications must run as when user switching fails or is disabled.",
210
210
  },
211
211
  {
212
- :name => 'PassengerDataBufferDir',
213
- :type => :string,
214
- :context => :global,
215
- :dynamic_default => '$TMPDIR, or if not given, /tmp',
216
- :desc => "The directory that #{PROGRAM_NAME} data buffers should be stored into."
212
+ name: 'PassengerDataBufferDir',
213
+ type: :string,
214
+ context: :global,
215
+ dynamic_default: '$TMPDIR, or if not given, /tmp',
216
+ desc: "The directory that #{PROGRAM_NAME} data buffers should be stored into.",
217
217
  },
218
218
  {
219
- :name => 'PassengerInstanceRegistryDir',
220
- :type => :string,
221
- :context => :global,
222
- :dynamic_default => 'Either /var/run/passenger-instreg, $TMPDIR, or /tmp (see docs)',
223
- :desc => "The directory to register the #{PROGRAM_NAME} instance to."
219
+ name: 'PassengerInstanceRegistryDir',
220
+ type: :string,
221
+ context: :global,
222
+ dynamic_default: 'Either /var/run/passenger-instreg, $TMPDIR, or /tmp (see docs)',
223
+ desc: "The directory to register the #{PROGRAM_NAME} instance to.",
224
224
  },
225
225
  {
226
- :name => 'PassengerSpawnDir',
227
- :type => :string,
228
- :context => :global,
229
- :dynamic_default => 'Either $TMPDIR or /tmp',
230
- :desc => "The directory for #{PROGRAM_NAME} used during child spawning."
226
+ name: 'PassengerSpawnDir',
227
+ type: :string,
228
+ context: :global,
229
+ dynamic_default: 'Either $TMPDIR or /tmp',
230
+ desc: "The directory for #{PROGRAM_NAME} used during child spawning.",
231
231
  },
232
232
  {
233
- :name => 'PassengerDisableSecurityUpdateCheck',
234
- :type => :flag,
235
- :context => :global,
236
- :default => false,
237
- :desc => "Whether to disable the #{PROGRAM_NAME} security update check & notification."
233
+ name: 'PassengerDisableSecurityUpdateCheck',
234
+ type: :flag,
235
+ context: :global,
236
+ default: false,
237
+ desc: "Whether to disable the #{PROGRAM_NAME} security update check & notification.",
238
238
  },
239
239
  {
240
- :name => 'PassengerSecurityUpdateCheckProxy',
241
- :type => :string,
242
- :context => :global,
243
- :desc => "Use specified HTTP/SOCKS proxy for the #{PROGRAM_NAME} security update check."
240
+ name: 'PassengerSecurityUpdateCheckProxy',
241
+ type: :string,
242
+ context: :global,
243
+ desc: "Use specified HTTP/SOCKS proxy for the #{PROGRAM_NAME} security update check.",
244
244
  },
245
245
  {
246
- :name => 'PassengerDisableAnonymousTelemetry',
247
- :type => :flag,
248
- :context => :global,
249
- :default => false,
250
- :desc => "Whether to disable #{PROGRAM_NAME} anonymous telemetry."
246
+ name: 'PassengerDisableAnonymousTelemetry',
247
+ type: :flag,
248
+ context: :global,
249
+ default: false,
250
+ desc: "Whether to disable #{PROGRAM_NAME} anonymous telemetry.",
251
251
  },
252
252
  {
253
- :name => 'PassengerAnonymousTelemetryProxy',
254
- :type => :string,
255
- :context => :global,
256
- :desc => "Use specified HTTP/SOCKS proxy for #{PROGRAM_NAME} anonymous telemetry collection."
253
+ name: 'PassengerAnonymousTelemetryProxy',
254
+ type: :string,
255
+ context: :global,
256
+ desc: "Use specified HTTP/SOCKS proxy for #{PROGRAM_NAME} anonymous telemetry collection.",
257
257
  },
258
258
  {
259
- :name => 'PassengerStatThrottleRate',
260
- :type => :integer,
261
- :context => :global,
262
- :default => DEFAULT_STAT_THROTTLE_RATE,
263
- :default_expr => 'DEFAULT_STAT_THROTTLE_RATE',
264
- :desc => 'Limit the number of stat calls to once per given seconds.'
259
+ name: 'PassengerStatThrottleRate',
260
+ type: :integer,
261
+ context: :global,
262
+ default: DEFAULT_STAT_THROTTLE_RATE,
263
+ default_expr: 'DEFAULT_STAT_THROTTLE_RATE',
264
+ desc: 'Limit the number of stat calls to once per given seconds.',
265
265
  },
266
266
  {
267
- :name => 'PassengerPreStart',
268
- :type => :string_set,
269
- :context => :global,
270
- :field => 'prestartURLs',
271
- :desc => 'Prestart the given web applications during startup.'
267
+ name: 'PassengerPreStart',
268
+ type: :string_set,
269
+ context: :global,
270
+ field: 'prestartURLs',
271
+ desc: 'Prestart the given web applications during startup.',
272
272
  },
273
273
  {
274
- :name => 'PassengerTurbocaching',
275
- :type => :flag,
276
- :context => :global,
277
- :default => true,
278
- :desc => "Whether to enable turbocaching in #{PROGRAM_NAME}."
274
+ name: 'PassengerTurbocaching',
275
+ type: :flag,
276
+ context: :global,
277
+ default: true,
278
+ desc: "Whether to enable turbocaching in #{PROGRAM_NAME}.",
279
279
  },
280
280
  {
281
- :name => 'PassengerOldRouting',
282
- :type => :flag,
283
- :context => :global,
284
- :default => false,
285
- :desc => "Whether to revert to old routing behaviour in #{PROGRAM_NAME}."
281
+ name: 'PassengerOldRouting',
282
+ type: :flag,
283
+ context: :global,
284
+ default: false,
285
+ desc: "Whether to revert to old routing behaviour in #{PROGRAM_NAME}.",
286
286
  },
287
287
  {
288
- :name => 'PassengerShowVersionInHeader',
289
- :type => :flag,
290
- :context => :global,
291
- :default => true,
292
- :desc => "Whether to show the #{PROGRAM_NAME} version number in the X-Powered-By header."
288
+ name: 'PassengerShowVersionInHeader',
289
+ type: :flag,
290
+ context: :global,
291
+ default: true,
292
+ desc: "Whether to show the #{PROGRAM_NAME} version number in the X-Powered-By header.",
293
293
  },
294
294
  {
295
- :name => 'PassengerMaxInstancesPerApp',
296
- :type => :integer,
297
- :context => :global,
298
- :min_value => 0,
299
- :default => 0,
300
- :desc => 'The maximum number of simultaneously alive application instances a single application may occupy.'
295
+ name: 'PassengerMaxInstancesPerApp',
296
+ type: :integer,
297
+ context: :global,
298
+ min_value: 0,
299
+ default: 0,
300
+ desc: 'The maximum number of simultaneously alive application instances a single application may occupy.',
301
301
  },
302
302
 
303
303
 
304
304
  ###### Per-application configuration ######
305
305
 
306
306
  {
307
- :name => 'PassengerRuby',
308
- :type => :string,
309
- :default => DEFAULT_RUBY,
310
- :default_expr => 'StaticString()',
311
- :desc => 'The Ruby interpreter to use.',
312
- :header_expression => 'config->mRuby.empty() ? serverConfig.defaultRuby : config->mRuby'
307
+ name: 'PassengerRuby',
308
+ type: :string,
309
+ default: DEFAULT_RUBY,
310
+ default_expr: 'StaticString()',
311
+ desc: 'The Ruby interpreter to use.',
312
+ header_expression: 'config->mRuby.empty() ? serverConfig.defaultRuby : config->mRuby',
313
313
  },
314
314
  {
315
- :name => 'PassengerPython',
316
- :type => :string,
317
- :default => DEFAULT_PYTHON,
318
- :default_expr => 'DEFAULT_PYTHON',
319
- :desc => 'The Python interpreter to use.'
315
+ name: 'PassengerPython',
316
+ type: :string,
317
+ default: DEFAULT_PYTHON,
318
+ default_expr: 'DEFAULT_PYTHON',
319
+ desc: 'The Python interpreter to use.',
320
320
  },
321
321
  {
322
- :name => 'PassengerNodejs',
323
- :type => :string,
324
- :default => DEFAULT_NODEJS,
325
- :default_expr => 'DEFAULT_NODEJS',
326
- :desc => 'The Node.js command to use.'
322
+ name: 'PassengerNodejs',
323
+ type: :string,
324
+ default: DEFAULT_NODEJS,
325
+ default_expr: 'DEFAULT_NODEJS',
326
+ desc: 'The Node.js command to use.',
327
327
  },
328
328
  {
329
- :name => 'PassengerMeteorAppSettings',
330
- :type => :string,
331
- :desc => 'Settings file for (non-bundled) Meteor apps.'
329
+ name: 'PassengerMeteorAppSettings',
330
+ type: :string,
331
+ desc: 'Settings file for (non-bundled) Meteor apps.',
332
332
  },
333
333
  {
334
- :name => 'PassengerBaseURI',
335
- :type => :string_set,
336
- :function => 'cmd_passenger_base_uri',
337
- :field => 'mBaseURIs',
338
- :desc => 'Declare the given base URI as belonging to a web application.',
339
- :header => nil
334
+ name: 'PassengerBaseURI',
335
+ type: :string_set,
336
+ function: 'cmd_passenger_base_uri',
337
+ field: 'mBaseURIs',
338
+ desc: 'Declare the given base URI as belonging to a web application.',
339
+ header: nil,
340
340
  },
341
341
  {
342
- :name => 'PassengerAppEnv',
343
- :type => :string,
344
- :default => 'production',
345
- :desc => 'The environment under which applications are run.'
342
+ name: 'PassengerAppEnv',
343
+ type: :string,
344
+ default: 'production',
345
+ desc: 'The environment under which applications are run.',
346
346
  },
347
347
  {
348
- :name => 'PassengerAppType',
349
- :type => :string,
350
- :dynamic_default => 'Autodetected',
351
- :desc => 'Force specific application type.',
352
- :header => nil
348
+ name: 'PassengerAppType',
349
+ type: :string,
350
+ dynamic_default: 'Autodetected',
351
+ desc: 'Force specific application type.',
352
+ header: nil,
353
353
  },
354
354
  {
355
- :name => 'PassengerAppStartCommand',
356
- :type => :string,
357
- :desc => 'Command string for starting the application.',
358
- :header => nil
355
+ name: 'PassengerAppStartCommand',
356
+ type: :string,
357
+ desc: 'Command string for starting the application.',
358
+ header: nil,
359
359
  },
360
360
  {
361
- :name => 'PassengerStartupFile',
362
- :type => :string,
363
- :dynamic_default => 'Autodetected',
364
- :desc => 'Force specific startup file.'
361
+ name: 'PassengerStartupFile',
362
+ type: :string,
363
+ dynamic_default: 'Autodetected',
364
+ desc: 'Force specific startup file.',
365
365
  },
366
366
  {
367
- :name => 'PassengerMinInstances',
368
- :type => :integer,
369
- :min_value => 0,
370
- :default => 1,
371
- :header => 'PASSENGER_MIN_PROCESSES',
372
- :desc => 'The minimum number of application instances to keep when cleaning idle instances.'
367
+ name: 'PassengerMinInstances',
368
+ type: :integer,
369
+ min_value: 0,
370
+ default: 1,
371
+ header: 'PASSENGER_MIN_PROCESSES',
372
+ desc: 'The minimum number of application instances to keep when cleaning idle instances.',
373
373
  },
374
374
  {
375
- :name => 'PassengerUser',
376
- :type => :string,
377
- :dynamic_default => 'See the user account sandboxing rules',
378
- :desc => 'The user that Ruby applications must run as.'
375
+ name: 'PassengerUser',
376
+ type: :string,
377
+ dynamic_default: 'See the user account sandboxing rules',
378
+ desc: 'The user that Ruby applications must run as.',
379
379
  },
380
380
  {
381
- :name => 'PassengerGroup',
382
- :type => :string,
383
- :dynamic_default => 'See the user account sandboxing rules',
384
- :desc => 'The group that Ruby applications must run as.'
381
+ name: 'PassengerGroup',
382
+ type: :string,
383
+ dynamic_default: 'See the user account sandboxing rules',
384
+ desc: 'The group that Ruby applications must run as.',
385
385
  },
386
386
  {
387
- :name => 'PassengerMaxRequests',
388
- :type => :integer,
389
- :min_value => 0,
390
- :default => 0,
391
- :desc => 'The maximum number of requests that an application instance may process.'
387
+ name: 'PassengerMaxRequests',
388
+ type: :integer,
389
+ min_value: 0,
390
+ default: 0,
391
+ desc: 'The maximum number of requests that an application instance may process.',
392
392
  },
393
393
  {
394
- :name => "PassengerStartTimeout",
395
- :type => :integer,
396
- :min_value => 1,
397
- :default => DEFAULT_START_TIMEOUT / 1000,
398
- :default_expr => 'DEFAULT_START_TIMEOUT / 1000',
399
- :desc => 'A timeout for application startup.'
394
+ name: "PassengerStartTimeout",
395
+ type: :integer,
396
+ min_value: 1,
397
+ default: DEFAULT_START_TIMEOUT / 1000,
398
+ default_expr: 'DEFAULT_START_TIMEOUT / 1000',
399
+ desc: 'A timeout for application startup.',
400
400
  },
401
401
  {
402
- :name => "PassengerAppConnectTimeout",
403
- :type => :integer,
404
- :min_value => 1,
405
- :default => DEFAULT_CONNECT_TIMEOUT,
406
- :default_expr => 'DEFAULT_CONNECT_TIMEOUT',
407
- :desc => 'A timeout for application to accept socket connections.'
402
+ name: "PassengerAppConnectTimeout",
403
+ type: :integer,
404
+ min_value: 1,
405
+ default: DEFAULT_CONNECT_TIMEOUT,
406
+ default_expr: 'DEFAULT_CONNECT_TIMEOUT',
407
+ desc: 'A timeout for application to accept socket connections.',
408
408
  },
409
409
  {
410
- :name => 'PassengerMaxRequestQueueSize',
411
- :type => :integer,
412
- :min_value => 0,
413
- :default => DEFAULT_MAX_REQUEST_QUEUE_SIZE,
414
- :default_expr => 'DEFAULT_MAX_REQUEST_QUEUE_SIZE',
415
- :desc => 'The maximum number of queued requests.'
410
+ name: 'PassengerMaxRequestQueueSize',
411
+ type: :integer,
412
+ min_value: 0,
413
+ default: DEFAULT_MAX_REQUEST_QUEUE_SIZE,
414
+ default_expr: 'DEFAULT_MAX_REQUEST_QUEUE_SIZE',
415
+ desc: 'The maximum number of queued requests.',
416
416
  },
417
417
  {
418
- :name => 'PassengerMaxPreloaderIdleTime',
419
- :type => :integer,
420
- :min_value => 0,
421
- :default => DEFAULT_MAX_PRELOADER_IDLE_TIME,
422
- :default_expr => 'DEFAULT_MAX_PRELOADER_IDLE_TIME',
423
- :desc => 'The maximum number of seconds that a preloader process may be idle before it is shutdown.'
418
+ name: 'PassengerMaxPreloaderIdleTime',
419
+ type: :integer,
420
+ min_value: 0,
421
+ default: DEFAULT_MAX_PRELOADER_IDLE_TIME,
422
+ default_expr: 'DEFAULT_MAX_PRELOADER_IDLE_TIME',
423
+ desc: 'The maximum number of seconds that a preloader process may be idle before it is shutdown.',
424
424
  },
425
425
  {
426
- :name => 'PassengerLoadShellEnvvars',
427
- :type => :flag,
428
- :default => true,
429
- :desc => 'Whether to load environment variables from the shell before running the application.'
426
+ name: 'PassengerLoadShellEnvvars',
427
+ type: :flag,
428
+ default: true,
429
+ desc: 'Whether to load environment variables from the shell before running the application.',
430
430
  },
431
431
  {
432
- :name => 'PassengerPreloadBundler',
433
- :type => :flag,
434
- :default => false,
435
- :desc => 'Whether to tell Ruby to load the bundler gem before running the application.'
432
+ name: 'PassengerPreloadBundler',
433
+ type: :flag,
434
+ default: false,
435
+ desc: 'Whether to tell Ruby to load the bundler gem before running the application.',
436
436
  },
437
437
  {
438
- :name => 'PassengerSpawnMethod',
439
- :type => :string,
440
- :dynamic_default => "'smart' for Ruby apps, 'direct' for all other apps",
441
- :desc => 'The spawn method to use.',
442
- :function => 'cmd_passenger_spawn_method'
438
+ name: 'PassengerSpawnMethod',
439
+ type: :string,
440
+ dynamic_default: "'smart' for Ruby apps, 'direct' for all other apps",
441
+ desc: 'The spawn method to use.',
442
+ function: 'cmd_passenger_spawn_method',
443
443
  },
444
444
  {
445
- :name => 'PassengerDirectInstanceRequestAddress',
446
- :type => :string,
447
- :default => DEFAULT_BIND_ADDRESS,
448
- :desc => 'The address that Passenger binds to in order to allow sending HTTP requests to individual application processes.'
445
+ name: 'PassengerDirectInstanceRequestAddress',
446
+ type: :string,
447
+ default: DEFAULT_BIND_ADDRESS,
448
+ desc: 'The address that Passenger binds to in order to allow sending HTTP requests to individual application processes.',
449
449
  },
450
450
  {
451
- :name => 'PassengerFriendlyErrorPages',
452
- :type => :flag,
453
- :dynamic_default => 'On if PassengerAppEnv is development, off otherwise',
454
- :desc => 'Whether to display friendly error pages when something goes wrong.'
451
+ name: 'PassengerFriendlyErrorPages',
452
+ type: :flag,
453
+ dynamic_default: 'On if PassengerAppEnv is development, off otherwise',
454
+ desc: 'Whether to display friendly error pages when something goes wrong.',
455
455
  },
456
456
  {
457
- :name => 'PassengerCustomErrorPage',
458
- :type => :string,
459
- :desc => 'Path to html file to use for Passenger generated error pages.'
457
+ name: 'PassengerCustomErrorPage',
458
+ type: :string,
459
+ desc: 'Path to html file to use for Passenger generated error pages.',
460
460
  },
461
461
  {
462
- :name => 'PassengerRestartDir',
463
- :type => :string,
464
- :default => 'tmp',
465
- :desc => "The directory in which #{PROGRAM_NAME} should look for restart.txt."
462
+ name: 'PassengerRestartDir',
463
+ type: :string,
464
+ default: 'tmp',
465
+ desc: "The directory in which #{PROGRAM_NAME} should look for restart.txt.",
466
466
  },
467
467
  {
468
- :name => 'PassengerAppGroupName',
469
- :type => :string,
470
- :dynamic_default => 'PassengerAppRoot plus PassengerAppEnv',
471
- :desc => 'Application process group name.'
468
+ name: 'PassengerAppGroupName',
469
+ type: :string,
470
+ dynamic_default: 'PassengerAppRoot plus PassengerAppEnv',
471
+ desc: 'Application process group name.',
472
472
  },
473
473
  {
474
- :name => 'PassengerMonitorLogFile',
475
- :type => :string_set,
476
- :header => nil,
477
- :desc => 'Log file path to monitor.'
474
+ name: 'PassengerMonitorLogFile',
475
+ type: :string_set,
476
+ header: nil,
477
+ desc: 'Log file path to monitor.',
478
478
  },
479
479
  {
480
- :name => 'PassengerForceMaxConcurrentRequestsPerProcess',
481
- :type => :integer,
482
- :default => -1,
483
- :desc => "Force #{SHORT_PROGRAM_NAME} to believe that an application process " \
484
- "can handle the given number of concurrent requests per process"
480
+ name: 'PassengerForceMaxConcurrentRequestsPerProcess',
481
+ type: :integer,
482
+ default: -1,
483
+ desc: "Force #{SHORT_PROGRAM_NAME} to believe that an application process " \
484
+ "can handle the given number of concurrent requests per process",
485
485
  },
486
486
  {
487
- :name => 'PassengerAppRoot',
488
- :type => :string,
489
- :dynamic_default => "Parent directory of the associated Apache virtual host's root directory",
490
- :desc => "The application's root directory.",
491
- :header => nil
487
+ name: 'PassengerAppRoot',
488
+ type: :string,
489
+ dynamic_default: "Parent directory of the associated Apache virtual host's root directory",
490
+ desc: "The application's root directory.",
491
+ header: nil,
492
492
  },
493
493
  {
494
- :name => 'PassengerLveMinUid',
495
- :type => :integer,
496
- :min_value => 0,
497
- :default => DEFAULT_LVE_MIN_UID,
498
- :default_expr => 'DEFAULT_LVE_MIN_UID',
499
- :desc => 'Minimum user ID starting from which entering LVE and CageFS is allowed.'
494
+ name: 'PassengerLveMinUid',
495
+ type: :integer,
496
+ min_value: 0,
497
+ default: DEFAULT_LVE_MIN_UID,
498
+ default_expr: 'DEFAULT_LVE_MIN_UID',
499
+ desc: 'Minimum user ID starting from which entering LVE and CageFS is allowed.',
500
500
  },
501
501
 
502
502
 
503
503
  ###### Per-location/per-request configuration ######
504
504
 
505
505
  {
506
- :name => 'PassengerErrorOverride',
507
- :type => :flag,
508
- :context => :location,
509
- :htaccess_context => ['OR_ALL'],
510
- :default => false,
511
- :desc => 'Allow Apache to handle error response.',
512
- :header => nil
513
- },
514
- {
515
- :name => 'PassengerHighPerformance',
516
- :type => :flag,
517
- :context => :location,
518
- :htaccess_context => ['OR_ALL'],
519
- :default => false,
520
- :desc => "Enable or disable Passenger's high performance mode.",
521
- :header => nil
522
- },
523
- {
524
- :name => 'PassengerEnabled',
525
- :type => :flag,
526
- :context => :location,
527
- :htaccess_context => ['OR_ALL'],
528
- :default => true,
529
- :desc => "Enable or disable #{PROGRAM_NAME}.",
530
- :header => nil
531
- },
532
- {
533
- :name => 'PassengerBufferUpload',
534
- :type => :flag,
535
- :context => :location,
536
- :htaccess_context => ['OR_ALL'],
537
- :default => true,
538
- :desc => 'Whether to buffer file uploads.',
539
- :header => nil
540
- },
541
- {
542
- :name => 'PassengerStickySessions',
543
- :type => :flag,
544
- :context => :location,
545
- :htaccess_context => ['OR_ALL'],
546
- :default => false,
547
- :desc => 'Whether to enable sticky sessions.'
548
- },
549
- {
550
- :name => 'PassengerStickySessionsCookieName',
551
- :type => :string,
552
- :context => :location,
553
- :htaccess_context => ['OR_ALL'],
554
- :default => DEFAULT_STICKY_SESSIONS_COOKIE_NAME,
555
- :default_expr => 'DEFAULT_STICKY_SESSIONS_COOKIE_NAME',
556
- :desc => 'The cookie name to use for sticky sessions.'
557
- },
558
- {
559
- :name => 'PassengerStickySessionsCookieAttributes',
560
- :type => :string,
561
- :context => :location,
562
- :htaccess_context => ['OR_ALL'],
563
- :default => DEFAULT_STICKY_SESSIONS_COOKIE_ATTRIBUTES,
564
- :default_expr => 'DEFAULT_STICKY_SESSIONS_COOKIE_ATTRIBUTES',
565
- :desc => 'The attributes to use for the sticky session cookie.'
566
- },
567
- {
568
- :name => 'PassengerBufferResponse',
569
- :type => :flag,
570
- :context => :location,
571
- :htaccess_context => ['OR_ALL'],
572
- :default => false,
573
- :desc => 'Whether to enable extra response buffering inside Apache.',
574
- :header => nil
575
- },
576
- {
577
- :name => 'PassengerAllowEncodedSlashes',
578
- :type => :flag,
579
- :context => :location,
580
- :default => false,
581
- :desc => "Whether to support encoded slashes in the URL",
582
- :header => nil
506
+ name: 'PassengerErrorOverride',
507
+ type: :flag,
508
+ context: :location,
509
+ htaccess_context: [ 'OR_ALL' ],
510
+ default: false,
511
+ desc: 'Allow Apache to handle error response.',
512
+ header: nil,
513
+ },
514
+ {
515
+ name: 'PassengerHighPerformance',
516
+ type: :flag,
517
+ context: :location,
518
+ htaccess_context: [ 'OR_ALL' ],
519
+ default: false,
520
+ desc: "Enable or disable Passenger's high performance mode.",
521
+ header: nil,
522
+ },
523
+ {
524
+ name: 'PassengerEnabled',
525
+ type: :flag,
526
+ context: :location,
527
+ htaccess_context: [ 'OR_ALL' ],
528
+ default: true,
529
+ desc: "Enable or disable #{PROGRAM_NAME}.",
530
+ header: nil,
531
+ },
532
+ {
533
+ name: 'PassengerBufferUpload',
534
+ type: :flag,
535
+ context: :location,
536
+ htaccess_context: [ 'OR_ALL' ],
537
+ default: true,
538
+ desc: 'Whether to buffer file uploads.',
539
+ header: nil,
540
+ },
541
+ {
542
+ name: 'PassengerStickySessions',
543
+ type: :flag,
544
+ context: :location,
545
+ htaccess_context: [ 'OR_ALL' ],
546
+ default: false,
547
+ desc: 'Whether to enable sticky sessions.',
548
+ },
549
+ {
550
+ name: 'PassengerStickySessionsCookieName',
551
+ type: :string,
552
+ context: :location,
553
+ htaccess_context: [ 'OR_ALL' ],
554
+ default: DEFAULT_STICKY_SESSIONS_COOKIE_NAME,
555
+ default_expr: 'DEFAULT_STICKY_SESSIONS_COOKIE_NAME',
556
+ desc: 'The cookie name to use for sticky sessions.',
557
+ },
558
+ {
559
+ name: 'PassengerStickySessionsCookieAttributes',
560
+ type: :string,
561
+ context: :location,
562
+ htaccess_context: [ 'OR_ALL' ],
563
+ default: DEFAULT_STICKY_SESSIONS_COOKIE_ATTRIBUTES,
564
+ default_expr: 'DEFAULT_STICKY_SESSIONS_COOKIE_ATTRIBUTES',
565
+ desc: 'The attributes to use for the sticky session cookie.',
566
+ },
567
+ {
568
+ name: 'PassengerBufferResponse',
569
+ type: :flag,
570
+ context: :location,
571
+ htaccess_context: [ 'OR_ALL' ],
572
+ default: false,
573
+ desc: 'Whether to enable extra response buffering inside Apache.',
574
+ header: nil,
575
+ },
576
+ {
577
+ name: 'PassengerAllowEncodedSlashes',
578
+ type: :flag,
579
+ context: :location,
580
+ default: false,
581
+ desc: "Whether to support encoded slashes in the URL",
582
+ header: nil,
583
583
  },
584
584
 
585
585
 
586
586
  ##### Enterprise options (placeholders in OSS) #####
587
587
 
588
588
  {
589
- :name => 'PassengerFlyWith',
590
- :type => :string,
591
- :context => :global,
592
- :function => 'cmd_passenger_enterprise_only',
593
- :field => nil,
594
- :desc => "Use Flying #{SHORT_PROGRAM_NAME}"
589
+ name: 'PassengerFlyWith',
590
+ type: :string,
591
+ context: :global,
592
+ function: 'cmd_passenger_enterprise_only',
593
+ field: nil,
594
+ desc: "Use Flying #{SHORT_PROGRAM_NAME}",
595
595
  },
596
596
  {
597
- :name => 'PassengerMemoryLimit',
598
- :type => :integer,
599
- :htaccess_context => ['OR_LIMIT'],
600
- :min_value => 0,
601
- :function => 'cmd_passenger_enterprise_only',
602
- :field => nil,
603
- :desc => 'The maximum amount of memory in MB that an application instance may use.'
597
+ name: 'PassengerMemoryLimit',
598
+ type: :integer,
599
+ htaccess_context: [ 'OR_LIMIT' ],
600
+ min_value: 0,
601
+ function: 'cmd_passenger_enterprise_only',
602
+ field: nil,
603
+ desc: 'The maximum amount of memory in MB that an application instance may use.',
604
604
  },
605
605
  {
606
- :name => 'PassengerMaxInstances',
607
- :type => :integer,
608
- :htaccess_context => ['OR_LIMIT'],
609
- :min_value => 0,
610
- :function => 'cmd_passenger_enterprise_only',
611
- :field => nil,
612
- :desc => "The maximum number of instances for the current application that #{PROGRAM_NAME} may spawn."
606
+ name: 'PassengerMaxInstances',
607
+ type: :integer,
608
+ htaccess_context: [ 'OR_LIMIT' ],
609
+ min_value: 0,
610
+ function: 'cmd_passenger_enterprise_only',
611
+ field: nil,
612
+ desc: "The maximum number of instances for the current application that #{PROGRAM_NAME} may spawn.",
613
613
  },
614
614
  {
615
- :name => 'PassengerRollingRestarts',
616
- :type => :flag,
617
- :function => 'cmd_passenger_enterprise_only',
618
- :field => nil,
619
- :desc => "Whether to turn on rolling restarts."
615
+ name: 'PassengerRollingRestarts',
616
+ type: :flag,
617
+ function: 'cmd_passenger_enterprise_only',
618
+ field: nil,
619
+ desc: "Whether to turn on rolling restarts.",
620
620
  },
621
621
  {
622
- :name => 'PassengerResistDeploymentErrors',
623
- :type => :flag,
624
- :function => 'cmd_passenger_enterprise_only',
625
- :field => nil,
626
- :desc => 'Whether to turn on deployment error resistance.'
622
+ name: 'PassengerResistDeploymentErrors',
623
+ type: :flag,
624
+ function: 'cmd_passenger_enterprise_only',
625
+ field: nil,
626
+ desc: 'Whether to turn on deployment error resistance.',
627
627
  },
628
628
  {
629
- :name => 'PassengerDebugger',
630
- :type => :flag,
631
- :function => 'cmd_passenger_enterprise_only',
632
- :field => nil,
633
- :desc => 'Whether to turn on debugger support'
629
+ name: 'PassengerDebugger',
630
+ type: :flag,
631
+ function: 'cmd_passenger_enterprise_only',
632
+ field: nil,
633
+ desc: 'Whether to turn on debugger support',
634
634
  },
635
635
  {
636
- :name => 'PassengerConcurrencyModel',
637
- :type => :string,
638
- :htaccess_context => ['OR_ALL'],
639
- :function => 'cmd_passenger_enterprise_only',
640
- :field => nil,
641
- :desc => 'The concurrency model that should be used for applications.'
636
+ name: 'PassengerConcurrencyModel',
637
+ type: :string,
638
+ htaccess_context: [ 'OR_ALL' ],
639
+ function: 'cmd_passenger_enterprise_only',
640
+ field: nil,
641
+ desc: 'The concurrency model that should be used for applications.',
642
642
  },
643
643
  {
644
- :name => 'PassengerThreadCount',
645
- :type => :integer,
646
- :htaccess_context => ['OR_ALL'],
647
- :min_value => 0,
648
- :function => 'cmd_passenger_enterprise_only',
649
- :field => nil,
650
- :desc => "The number of threads that #{PROGRAM_NAME} should spawn per application."
644
+ name: 'PassengerThreadCount',
645
+ type: :integer,
646
+ htaccess_context: [ 'OR_ALL' ],
647
+ min_value: 0,
648
+ function: 'cmd_passenger_enterprise_only',
649
+ field: nil,
650
+ desc: "The number of threads that #{PROGRAM_NAME} should spawn per application.",
651
651
  },
652
652
  {
653
- :name => 'PassengerMaxRequestTime',
654
- :type => :integer,
655
- :context => :location,
656
- :htaccess_context => ['OR_ALL'],
657
- :min_value => 0,
658
- :function => 'cmd_passenger_enterprise_only',
659
- :field => nil,
660
- :desc => 'The maximum time (in seconds) that the current application may spend on a request.'
653
+ name: 'PassengerMaxRequestTime',
654
+ type: :integer,
655
+ context: :location,
656
+ htaccess_context: [ 'OR_ALL' ],
657
+ min_value: 0,
658
+ function: 'cmd_passenger_enterprise_only',
659
+ field: nil,
660
+ desc: 'The maximum time (in seconds) that the current application may spend on a request.',
661
661
  },
662
662
  {
663
- :name => 'PassengerMaxRequestQueueTime',
664
- :type => :integer,
665
- :context => :location,
666
- :htaccess_context => ['OR_ALL'],
667
- :min_value => 0,
668
- :function => 'cmd_passenger_enterprise_only',
669
- :field => nil,
670
- :desc => 'The maximum number of seconds that a request may remain in the queue before it is dropped.'
663
+ name: 'PassengerMaxRequestQueueTime',
664
+ type: :integer,
665
+ context: :location,
666
+ htaccess_context: [ 'OR_ALL' ],
667
+ min_value: 0,
668
+ function: 'cmd_passenger_enterprise_only',
669
+ field: nil,
670
+ desc: 'The maximum number of seconds that a request may remain in the queue before it is dropped.',
671
671
  },
672
672
  {
673
- :name => 'PassengerAppLogFile',
674
- :type => :string,
675
- :dynamic_default => 'PassengerLogFile',
676
- :function => 'cmd_passenger_enterprise_only',
677
- :desc => 'Application log file path.'
673
+ name: 'PassengerAppLogFile',
674
+ type: :string,
675
+ dynamic_default: 'PassengerLogFile',
676
+ function: 'cmd_passenger_enterprise_only',
677
+ desc: 'Application log file path.',
678
678
  },
679
679
 
680
680
 
681
681
  ##### Aliases and backwards compatibility options #####
682
682
 
683
683
  {
684
- :name => 'RailsEnv',
685
- :alias_for => 'PassengerAppEnv'
684
+ name: 'RailsEnv',
685
+ alias_for: 'PassengerAppEnv',
686
686
  },
687
687
  {
688
- :name => 'RackEnv',
689
- :alias_for => 'PassengerAppEnv'
688
+ name: 'RackEnv',
689
+ alias_for: 'PassengerAppEnv',
690
690
  },
691
691
  {
692
- :name => 'RailsRuby',
693
- :alias_for => 'PassengerRuby'
692
+ name: 'RailsRuby',
693
+ alias_for: 'PassengerRuby',
694
694
  },
695
695
  {
696
- :name => 'PassengerDebugLogFile',
697
- :alias_for => 'PassengerLogFile'
696
+ name: 'PassengerDebugLogFile',
697
+ alias_for: 'PassengerLogFile',
698
698
  },
699
699
  {
700
- :name => 'RailsMaxPoolSize',
701
- :alias_for => 'PassengerMaxPoolSize'
700
+ name: 'RailsMaxPoolSize',
701
+ alias_for: 'PassengerMaxPoolSize',
702
702
  },
703
703
  {
704
- :name => 'RailsMaxInstancesPerApp',
705
- :alias_for => 'PassengerMaxInstancesPerApp'
704
+ name: 'RailsMaxInstancesPerApp',
705
+ alias_for: 'PassengerMaxInstancesPerApp',
706
706
  },
707
707
  {
708
- :name => 'RailsPoolIdleTime',
709
- :alias_for => 'PassengerPoolIdleTime'
708
+ name: 'RailsPoolIdleTime',
709
+ alias_for: 'PassengerPoolIdleTime',
710
710
  },
711
711
  {
712
- :name => 'RailsUserSwitching',
713
- :alias_for => 'PassengerUserSwitching'
712
+ name: 'RailsUserSwitching',
713
+ alias_for: 'PassengerUserSwitching',
714
714
  },
715
715
  {
716
- :name => 'RailsDefaultUser',
717
- :alias_for => 'PassengerDefaultUser'
716
+ name: 'RailsDefaultUser',
717
+ alias_for: 'PassengerDefaultUser',
718
718
  },
719
719
  {
720
- :name => 'RailsAppSpawnerIdleTime',
721
- :alias_for => 'PassengerMaxPreloaderIdleTime'
720
+ name: 'RailsAppSpawnerIdleTime',
721
+ alias_for: 'PassengerMaxPreloaderIdleTime',
722
722
  },
723
723
  {
724
- :name => 'RailsBaseURI',
725
- :alias_for => 'PassengerBaseURI'
724
+ name: 'RailsBaseURI',
725
+ alias_for: 'PassengerBaseURI',
726
726
  },
727
727
  {
728
- :name => 'RackBaseURI',
729
- :alias_for => 'PassengerBaseURI'
728
+ name: 'RackBaseURI',
729
+ alias_for: 'PassengerBaseURI',
730
730
  },
731
731
  {
732
- :name => 'RailsSpawnMethod',
733
- :alias_for => "PassengerSpawnMethod"
732
+ name: 'RailsSpawnMethod',
733
+ alias_for: "PassengerSpawnMethod",
734
734
  },
735
735
 
736
736
 
737
737
  ##### Deprecated/obsolete options #####
738
738
 
739
739
  {
740
- :name => 'RailsSpawnServer',
741
- :type => :string,
742
- :context => :global,
743
- :obsolete => true,
744
- :obsoletion_message => "The 'RailsSpawnServer' option is obsolete. " \
740
+ name: 'RailsSpawnServer',
741
+ type: :string,
742
+ context: :global,
743
+ obsolete: true,
744
+ obsoletion_message: "The 'RailsSpawnServer' option is obsolete. " \
745
745
  "Please specify 'PassengerRoot' instead. The correct value was " \
746
746
  "given to you by 'passenger-install-apache2-module'.",
747
- :desc => 'Obsolete option.'
747
+ desc: 'Obsolete option.',
748
748
  },
749
749
  {
750
- :name => "RailsAllowModRewrite",
751
- :type => :flag,
752
- :context => :global,
753
- :obsolete => true,
754
- :obsoletion_message => "The 'RailsAllowModRewrite' option is obsolete: " \
750
+ name: "RailsAllowModRewrite",
751
+ type: :flag,
752
+ context: :global,
753
+ obsolete: true,
754
+ obsoletion_message: "The 'RailsAllowModRewrite' option is obsolete: " \
755
755
  "#{PROGRAM_NAME} now fully supports mod_rewrite. " \
756
756
  "Please remove this option from your configuration file.",
757
- :desc => 'Obsolete option.'
757
+ desc: 'Obsolete option.',
758
758
  },
759
759
  {
760
- :name => "RailsFrameworkSpawnerIdleTime",
761
- :type => :integer,
762
- :context => :global,
763
- :obsolete => true,
764
- :obsoletion_message => "The 'RailsFrameworkSpawnerIdleTime' option is obsolete. " \
760
+ name: "RailsFrameworkSpawnerIdleTime",
761
+ type: :integer,
762
+ context: :global,
763
+ obsolete: true,
764
+ obsoletion_message: "The 'RailsFrameworkSpawnerIdleTime' option is obsolete. " \
765
765
  "Please use 'PassengerMaxPreloaderIdleTime' instead.",
766
- :desc => 'Obsolete option.'
766
+ desc: 'Obsolete option.',
767
767
  },
768
768
  {
769
- :name => 'PassengerUseGlobalQueue',
770
- :type => :flag,
771
- :obsolete => true,
772
- :obsoletion_message => "The 'PassengerUseGlobalQueue' option is obsolete: " \
769
+ name: 'PassengerUseGlobalQueue',
770
+ type: :flag,
771
+ obsolete: true,
772
+ obsoletion_message: "The 'PassengerUseGlobalQueue' option is obsolete: " \
773
773
  'global queueing is now always turned on. ' \
774
774
  'Please remove this option from your configuration file.',
775
- :desc => 'Obsolete option.'
775
+ desc: 'Obsolete option.',
776
776
  },
777
777
  {
778
- :name => 'UnionStationGatewayAddress',
779
- :type => :string,
780
- :context => :global,
781
- :obsolete => true,
782
- :desc => 'Obsolete option.'
778
+ name: 'UnionStationGatewayAddress',
779
+ type: :string,
780
+ context: :global,
781
+ obsolete: true,
782
+ desc: 'Obsolete option.',
783
783
  },
784
784
  {
785
- :name => 'UnionStationGatewayPort',
786
- :type => :integer,
787
- :context => :global,
788
- :obsolete => true,
789
- :desc => 'Obsolete option.'
785
+ name: 'UnionStationGatewayPort',
786
+ type: :integer,
787
+ context: :global,
788
+ obsolete: true,
789
+ desc: 'Obsolete option.',
790
790
  },
791
791
  {
792
- :name => 'UnionStationGatewayCert',
793
- :type => :string,
794
- :context => :global,
795
- :obsolete => true,
796
- :desc => 'Obsolete option.'
792
+ name: 'UnionStationGatewayCert',
793
+ type: :string,
794
+ context: :global,
795
+ obsolete: true,
796
+ desc: 'Obsolete option.',
797
797
  },
798
798
  {
799
- :name => 'UnionStationProxyAddress',
800
- :type => :string,
801
- :context => :global,
802
- :obsolete => true,
803
- :desc => 'Obsolete option.'
799
+ name: 'UnionStationProxyAddress',
800
+ type: :string,
801
+ context: :global,
802
+ obsolete: true,
803
+ desc: 'Obsolete option.',
804
804
  },
805
805
  {
806
- :name => 'PassengerAnalyticsLogUser',
807
- :type => :string,
808
- :context => :global,
809
- :obsolete => true,
810
- :desc => 'Obsolete option.'
806
+ name: 'PassengerAnalyticsLogUser',
807
+ type: :string,
808
+ context: :global,
809
+ obsolete: true,
810
+ desc: 'Obsolete option.',
811
811
  },
812
812
  {
813
- :name => 'PassengerAnalyticsLogGroup',
814
- :type => :string,
815
- :context => :global,
816
- :obsolete => true,
817
- :desc => 'Obsolete option.'
813
+ name: 'PassengerAnalyticsLogGroup',
814
+ type: :string,
815
+ context: :global,
816
+ obsolete: true,
817
+ desc: 'Obsolete option.',
818
818
  },
819
819
  {
820
- :name => 'UnionStationKey',
821
- :type => :string,
822
- :obsolete => true,
823
- :desc => 'Obsolete option.'
820
+ name: 'UnionStationKey',
821
+ type: :string,
822
+ obsolete: true,
823
+ desc: 'Obsolete option.',
824
824
  },
825
825
  {
826
- :name => 'UnionStationFilter',
827
- :type => :string,
828
- :context => :location,
829
- :obsolete => true,
830
- :desc => 'Obsolete option.'
826
+ name: 'UnionStationFilter',
827
+ type: :string,
828
+ context: :location,
829
+ obsolete: true,
830
+ desc: 'Obsolete option.',
831
831
  },
832
832
  {
833
- :name => 'UnionStationSupport',
834
- :type => :flag,
835
- :obsolete => true,
836
- :desc => 'Obsolete option.'
837
- }
833
+ name: 'UnionStationSupport',
834
+ type: :flag,
835
+ obsolete: true,
836
+ desc: 'Obsolete option.',
837
+ },
838
838
  ]
839
839
 
840
840
  PhusionPassenger::Apache2::ConfigUtils.initialize!(APACHE2_CONFIGURATION_OPTIONS)