Last active
October 13, 2017 19:24
-
-
Save freshlogic/cc7326042e80f29840b4 to your computer and use it in GitHub Desktop.
Web.cloud.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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