def __init__(self, app, conf):
        self.app = app
        self.logger = get_logger(conf, log_route='sos-python')
        self.conf = OriginServer._translate_conf(conf)
        self.origin_prefix = self.conf.get('origin_prefix', '/origin/')
        self.origin_db_hosts = [
            host.strip() for host in
            self.conf.get('origin_db_hosts', '').split(',') if host.strip()]
        self.origin_cdn_host_suffixes = [
            host.strip() for host in
            self.conf.get('origin_cdn_host_suffixes', '').split(',')
            if host.strip()]
        if not self.origin_cdn_host_suffixes:
            raise InvalidConfiguration('Please add origin_cdn_host_suffixes')
        self.ignore_hosts = [
            host.strip() for host in
            self.conf.get('ignore_hosts', '').split(',')
            if host.strip()]
        self.log_access_requests = \
            self.conf.get('log_access_requests', 't') in TRUE_VALUES
dataset/ETHPy150Open dpgoetz/sos/sos/origin.py/OriginServer.__init__/original