Compiling mod_lua

Hi, i was looking at the page how to compile after the fact, as im using a customized openlitespeed for aapanel (updated to latest 1.7.14), so i cannot just reinstall it with Lua as it has modified config files.

So, i installed LuaJIT and compiled it and now its at , /opt/LuaJIT-2.0.5/src/

According to i now have to edit "Makefile.f" where is this located at? I find the guide a bit vague on this..

And since i cannot add modules in the webadministrator (load external configs so its readonly), whats the lines i have to add to /usr/local/lsws/conf/https_config.conf to load it after compile?

Thanks :)
Okay, managed to compile it, but im not sure what to write in config as its disabled from visual edit, i have to manually add it in the config..

I tried this but it wont render

module mod_lua {
ls_enabled 1

extProcessor mod_lua{
type modulehandler

add modulehandler:mod_lua lua

i get this in log, so it seem it loads it correctly:
2021-09-23 19:10:40.033972 [INFO] [13941] [Module: mod_lua JIT Lua 5.1] has been initialized successfully

however i try to load the hello.lua file, i get this:

2021-09-23 19:10:40.037778 [ERROR] [13941] [config:server:vhosts:vhost:Example:scripthandler:add] Invalid External app type:[modulehandler]
2021-09-23 19:10:40.037783 [ERROR] [13941] [config:server:vhosts:vhost:Example:scripthandler:add] Invalid External app type:[modulehandler]
2021-09-23 19:10:40.037786 [ERROR] [13941] [config:server:vhosts:vhost:Example:scripthandler:add] HttpMime::addMimeHandler getHandler with name mod_lua ret (nil)
2021-09-23 19:10:40.037788 [ERROR] [13941] [config:server:vhosts:vhost:Example:scripthandler:add] use static file handler for suffix [lua]