Lighthttpd condiguration file

Dear all,

To bypass my ISP IpTV, I need to port this httpd configuration file to OpenWRT /etc/config/uhttpd

url.rewrite-once = (
# Add line
"^(/api/1.0/.*)" => "$0",
# Add line
        "^(/(lib|media|ws|tests)/.*)" => "$0",
        "^/([^\?]+)(\?(.*))?$" => "/index.php/$1?$3"
)

$HTTP["scheme"] == "http" {
    $HTTP["url"] !~ "^/index.php/error/" {
# Add line
    $HTTP["url"] !~ "^/api/" {
# Add line
        $HTTP["host"] =~ "^(.*)$" {
                url.redirect = (
                        "^(.*)$" => "https://%1$1"
                )
        }
# Add line
    }
# Add line
    }
}

https://lafibre.info/remplacer-sfr/bypasser-la-neufbox-avec-un-routeur-ubiquiti-edgemax-en-5mn-pour-les-barbus/108/

How to do it?