Skip to content

Instantly share code, notes, and snippets.

@freshlogic
Last active October 13, 2017 19:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshlogic/cc7326042e80f29840b4 to your computer and use it in GitHub Desktop.
Save freshlogic/cc7326042e80f29840b4 to your computer and use it in GitHub Desktop.
Web.cloud.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
</appSettings>
<system.web>
<customErrors mode="off" />
<httpRuntime maxQueryStringLength="2097151" maxUrlLength="2097151" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false" />
<iisnode debuggingEnabled="false" devErrorsEnabled="false" logDirectory="logs" loggingEnabled="true" node_env="production" nodeProcessCommandLine="D:\node.exe" nodeProcessCountPerApplication="0" promoteServerVars="HTTPS,REMOTE_ADDR" />
<handlers>
<add name="iisnode" path="app.js" verb="*" modules="iisnode" />
</handlers>
<httpErrors existingResponse="PassThrough" />
<rewrite>
<rules>
<clear />
<rule name="app" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="iisnode.+" negate="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="app.js" />
</rule>
</rules>
</rewrite>
<security>
<ipSecurity allowUnlisted="false">
<add allowed="true" ipAddress="x.x.x.x" />
</ipSecurity>
<requestFiltering>
<requestLimits maxQueryString="2097151" maxUrl="2097151" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment