How to block access to Foris/LuCI and allow to Nextcloud?

I have a setup on my apache server that serves different pages to different hosts (lan vs wan basically).

It looks like lighttpd has something similar. I found on this page:
https://redmine.lighttpd.net/projects/1/wiki/docs_configuration
you can set access restrictions:

# Allow only 200.19.1.5 and 210.45.2.7 to
# have access to www.example.org/admin/
$HTTP["host"] == "www.example.org" {
  #!~ is a perl style regular expression not match
  $HTTP["remoteip"] !~ "^(200\.19\.1\.5|210\.45\.2\.7)$" {
    $HTTP["url"] =~ "^/admin/" {
      url.access-deny = ( "" )
    }
  }
}

I’m not sure how that would be set up for the Turris, but I imagine it could be set somewhere.