I got it working... Here's some tips for anyone else
- run these step in console from wwwroot folder -> https://jsreport.net/on-prem
- put process.json in wwwroot:
{
"name" : "worker",
"script" : "./server.js",
"instances" : 1,
"merge_logs" : true,
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"watch": true,
"watch_options": {
"followSymlinks": true,
"usePolling" : true,
"interval" : 5
}
}
- put web.config file in wwwroot:
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="DynamicContent">
<match url="/*" />
<action type="Rewrite" url="server.js"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>```