|  | 
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> | 
| 2 | 2 | <configuration> | 
| 3 | 3 |   <system.webServer> | 
|  | 4 | +    <webSocket enabled="false" /> | 
|  | 5 | +    <handlers> | 
|  | 6 | +      <add name="iisnode" path="server.js" verb="*" modules="iisnode"/> | 
|  | 7 | +    </handlers> | 
| 4 | 8 |     <rewrite> | 
| 5 | 9 |       <rules> | 
| 6 |  | -        <rule name="Handle History API"> | 
| 7 |  | -          <match url=".*" /> | 
| 8 |  | -          <conditions logicalGrouping="MatchAll"> | 
| 9 |  | -            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | 
| 10 |  | -            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | 
|  | 10 | +        <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true"> | 
|  | 11 | +          <match url="^server.js\/debug[\/]?" /> | 
|  | 12 | +        </rule> | 
|  | 13 | +        <rule name="StaticContent"> | 
|  | 14 | +          <action type="Rewrite" url="public{REQUEST_URI}"/> | 
|  | 15 | +        </rule> | 
|  | 16 | +        <rule name="DynamicContent"> | 
|  | 17 | +          <conditions> | 
|  | 18 | +            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/> | 
| 11 | 19 |           </conditions> | 
| 12 |  | -          <action type="Rewrite" url="/index.html" /> | 
|  | 20 | +          <action type="Rewrite" url="server.js"/> | 
| 13 | 21 |         </rule> | 
| 14 | 22 |       </rules> | 
| 15 | 23 |     </rewrite> | 
| 16 |  | -    <staticContent> | 
| 17 |  | -      <mimeMap fileExtension=".js" mimeType="application/javascript" /> | 
| 18 |  | -      <mimeMap fileExtension=".css" mimeType="text/css" /> | 
| 19 |  | -      <mimeMap fileExtension=".json" mimeType="application/json" /> | 
| 20 |  | -      <mimeMap fileExtension=".woff" mimeType="font/woff" /> | 
| 21 |  | -      <mimeMap fileExtension=".woff2" mimeType="font/woff2" /> | 
| 22 |  | -    </staticContent> | 
| 23 |  | -    <httpCompression> | 
| 24 |  | -      <dynamicTypes> | 
| 25 |  | -        <add mimeType="application/javascript" enabled="true" /> | 
| 26 |  | -        <add mimeType="text/css" enabled="true" /> | 
| 27 |  | -      </dynamicTypes> | 
| 28 |  | -    </httpCompression> | 
|  | 24 | +    <security> | 
|  | 25 | +      <requestFiltering> | 
|  | 26 | +        <hiddenSegments> | 
|  | 27 | +          <remove segment="bin"/> | 
|  | 28 | +        </hiddenSegments> | 
|  | 29 | +      </requestFiltering> | 
|  | 30 | +    </security> | 
| 29 | 31 |     <httpErrors existingResponse="PassThrough" /> | 
|  | 32 | +    <iisnode watchedFiles="web.config;*.js"/> | 
| 30 | 33 |   </system.webServer> | 
| 31 | 34 | </configuration> | 
| 32 |  | -      node_env="%node_env%" | 
| 33 |  | -      nodeProcessCountPerApplication="1" | 
| 34 |  | -      maxConcurrentRequestsPerProcess="1024" | 
| 35 | 35 |       maxNamedPipeConnectionRetry="3" | 
| 36 | 36 |       namedPipeConnectionRetryDelay="2000" | 
| 37 | 37 |       asyncCompletionThreadCount="0" | 
|  | 
0 commit comments