Advertisement
Guest User

iisnode web.config

a guest
Jun 9th, 2021
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.71 KB | None | 0 0
  1. <configuration>
  2.     <system.webServer>
  3.         <httpErrors existingResponse="PassThrough" />
  4.  
  5.         <iisnode nodeProcessCountPerApplication="0" maxConcurrentRequestsPerProcess="1024" maxNamedPipeConnectionRetry="100" namedPipeConnectionRetryDelay="250" maxNamedPipeConnectionPoolSize="512" maxNamedPipePooledConnectionAge="30000" asyncCompletionThreadCount="0" initialRequestBufferSize="4096" maxRequestBufferSize="65536" watchedFiles="*.js;iisnode.yml;web.config,.env" uncFileChangesPollingInterval="5000" gracefulShutdownTimeout="60000" loggingEnabled="false" logDirectory="iisnode" debuggingEnabled="false" debugHeaderEnabled="false" debuggerPortRange="5058-6058" debuggerPathSegment="debug" maxLogFileSizeInKB="128" maxTotalLogFileSizeInKB="1024" maxLogFiles="20" devErrorsEnabled="false" flushResponse="false" enableXFF="false" promoteServerVars="" configOverrides="iisnode.yml" />
  6.  
  7.         <!-- Indicates that the dist.js file is a node.js application to be handled by the iisnode module -->
  8.         <handlers>
  9.             <add name="iisnode" path="server/dist.js" verb="*" modules="iisnode" />
  10.         </handlers>
  11.  
  12.         <rewrite>
  13.             <rules>
  14.                 <rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
  15.                     <match url="iisnode"/>
  16.                 </rule>
  17.  
  18.                 <rule name="App">
  19.                     <match url="/*" />
  20.                     <action type="Rewrite" url="server/dist.js" />
  21.                 </rule>
  22.             </rules>
  23.         </rewrite>
  24.  
  25.         <httpProtocol>
  26.             <customHeaders>
  27.                 <remove name="X-Powered-By" />
  28.             </customHeaders>
  29.         </httpProtocol>
  30.  
  31.     </system.webServer>
  32. </configuration>
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement