OPTION(rgw_port, OPT_STR) // port to listen, format as "8080" "5000", if not specified, rgw will not run external fcgi
OPTION(rgw_dns_name, OPT_STR) // hostname suffix on buckets
OPTION(rgw_dns_s3website_name, OPT_STR) // hostname suffix on buckets for s3-website endpoint
+OPTION(rgw_service_provider_name, OPT_STR) //service provider name which is contained in http response headers
OPTION(rgw_content_length_compat, OPT_BOOL) // Check both HTTP_CONTENT_LENGTH and CONTENT_LENGTH in fcgi env
OPTION(rgw_lifecycle_work_time, OPT_STR) //job process lc at 00:00-06:00s
OPTION(rgw_lc_lock_max_time, OPT_INT) // total run time for a single lc processor work
"This is needed for virtual hosting of buckets, unless configured via zonegroup "
"configuration."),
+ Option("rgw_service_provider_name", Option::TYPE_STR, Option::LEVEL_ADVANCED)
+ .set_default("")
+ .set_description("Service provider name which is contained in http response headers")
+ .set_long_description(
+ "As S3 or other cloud storage providers do, http response headers should contain the name of the provider. "
+ "This name will be placed in http header 'Server'."),
+
Option("rgw_content_length_compat", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
.set_default(false)
.set_description("Multiple content length headers compatibility")
if (content_type) {
dump_header(s, "Content-Type", content_type);
}
+ dump_header_if_nonempty(s, "Server", g_conf()->rgw_service_provider_name);
try {
RESTFUL_IO(s)->complete_header();