-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.config
More file actions
35 lines (34 loc) · 1.1 KB
/
web.config
File metadata and controls
35 lines (34 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="server/server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<!-- First, try to serve static files -->
<rule name="StaticContent" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" />
</conditions>
<action type="Rewrite" url="server/public/{R:1}"/>
</rule>
<!-- If not static, route to Node.js -->
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="server/server.js"/>
</rule>
</rules>
</rewrite>
<iisnode
nodeProcessCommandLine="node --max-old-space-size=4096"
maxConcurrentRequestsPerProcess="1024"
watchedFiles="*.js;web.config"
loggingEnabled="true"
startupTimeLimit="300"
/>
</system.webServer>
</configuration>