instance = {
    addrs = {
        { ip = "localhost"; port = port; };
    }; -- addrs

    admin_addrs = {
         { ip = "localhost"; port = admin_port; };
    };

    log = log;
    thread_mode = thread_mode; set_no_file = false;

    ipdispatch = {
        admin = {
            ip = "localhost";
            port = admin_port;
            http = {
                maxlen = 65536; maxreq = 65536;
                admin = {};
            }; -- http
        }; -- admin
        test = {
            errorlog = {
                log = errorlog;
                log_level = "INFO";
                http = {
                    maxlen = 65536; maxreq = 65536;
                    keepalive = keepalive;
                    response_headers = {
                        delete = 'for-delete.*';
                        create = {
                            ["New-header2"] = 'starttime';
                            ["Header"] = 'Config';
                        }; -- create

                        create_weak = {
                            ["New-header3"] = 'NEWWWWW!!!';
                            ["Connection"] = 'Keep-Alive';
                        }; -- create_weak

                        create_func = {
                            ["X-Forwarded-For-Y"] = 'realip';
                            ["X-Source-Port-Y"] = 'realport';
                            ["X-Start-Time"] = 'starttime';
                            ["X-Req-Id"] = 'reqid';
                        }; -- create_func

                        create_func_weak = {
                            ["Bebebe"] = 'reqid';
                            ["Bebebe1"] = 'reqid';
                        }; -- create_func_weak

                        accesslog = {
                            log = accesslog;
                            proxy = {
                                host = 'localhost'; port = backend_port;
                                keepalive_count = keepalive_count;
                                backend_timeout = backend_timeout or "60s";
                                resolve_timeout = "1s";
                                connect_timeout = "1s";
                            }; -- proxy
                        }; -- accesslog
                    }; -- response_headers
                }; -- http
            }; -- errorlog
        }; -- test
    }; -- ipdispatch
}; -- instance

if connection_manager_required == 'true' then instance.connection_manager = {}; end
