'Creates a new WSGI application for the Swift Object Server. An
example configuration is given at
<source-dir>/etc/object-server.conf-sample or
/etc/swift/object-server.conf-sample.'

def __init__(self, conf, logger=None):

    super(ObjectController, self).__init__(conf)
    self.logger = (logger or get_logger(conf, log_route='object-server'))
    self.node_timeout = float(conf.get('node_timeout', 3))
    self.container_update_timeout = float(conf.get('container_update_timeout', 1))
    self.conn_timeout = float(conf.get('conn_timeout', 0.5))
    self.client_timeout = int(conf.get('client_timeout', 60))
    self.disk_chunk_size = int(conf.get('disk_chunk_size', 65536))
    self.network_chunk_size = int(conf.get('network_chunk_size', 65536))
    self.log_requests = config_true_value(conf.get('log_requests', 'true'))
    self.max_upload_time = int(conf.get('max_upload_time', 86400))
    self.slow = int(conf.get('slow', 0))
    self.keep_cache_private = config_true_value(conf.get('keep_cache_private', 'false'))
    default_allowed_headers = '\n                                                content-disposition,\n                                                content-encoding,\n                                                x-delete-at,\n                                                x-object-manifest,\n                                                x-static-large-object,\n                                '
    extra_allowed_headers = [header.strip().lower() for header in conf.get('allowed_headers', default_allowed_headers).split(',') if header.strip()]
    self.allowed_headers = set()
    for header in extra_allowed_headers:
        if (header not in DATAFILE_SYSTEM_META):
            self.allowed_headers.add(header)
    self.auto_create_account_prefix = (conf.get('auto_create_account_prefix') or '.')
    self.expiring_objects_account = (self.auto_create_account_prefix + (conf.get('expiring_objects_account_name') or 'expiring_objects'))
    self.expiring_objects_container_divisor = int((conf.get('expiring_objects_container_divisor') or 86400))
    socket._fileobject.default_bufsize = self.network_chunk_size
    self.setup(conf)
