-
Notifications
You must be signed in to change notification settings - Fork 4
/
web.config
48 lines (44 loc) · 2.45 KB
/
web.config
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
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="app.js" verb="*" modules="iisnode" />
</handlers>
<iisnode node_env="%node_env%" asyncCompletionThreadCount="0" nodeProcessCountPerApplication="1" interceptor=""%programfiles%\iisnode\interceptor.js"" maxConcurrentRequestsPerProcess="1024" maxNamedPipeConnectionRetry="100" namedPipeConnectionRetryDelay="250" maxNamedPipeConnectionPoolSize="512" maxNamedPipePooledConnectionAge="30000" initialRequestBufferSize="4096" maxRequestBufferSize="65536" uncFileChangesPollingInterval="5000" gracefulShutdownTimeout="60000" logDirectory="iisnode" debuggingEnabled="true" debuggerExtensionDll="iisnode-inspector.dll" debugHeaderEnabled="false" debuggerPathSegment="debug" debuggerPortRange="5058-6058" maxLogFileSizeInKB="128" maxTotalLogFileSizeInKB="1024" maxLogFiles="20" loggingEnabled="true" devErrorsEnabled="true" flushResponse="false" watchedFiles="*.js;iisnode.yml;web.config" enableXFF="false" promoteServerVars="" configOverrides="iisnode.yml" />
<!--
One more setting that can be modified is the path to the node.exe executable and the interceptor:
<iisnode
nodeProcessCommandLine=""%programfiles%\nodejs\node.exe""
interceptor=""%programfiles%\iisnode\interceptor.js"" />
-->
<defaultDocument>
<files>
<add value="app.js" />
</files>
</defaultDocument>
<rewrite>
<rules>
<clear />
<rule name="inspector" stopProcessing="true">
<match url="/app\.js.*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="appjs">
<match url="/*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" pattern="version\.txt" negate="true" />
</conditions>
<action type="Rewrite" url="/app.js" />
</rule>
</rules>
</rewrite>
<security>
<requestFiltering>
<hiddenSegments>
<add segment="node_modules" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>