botserver/web.config

39 lines
1.6 KiB
Text
Raw Normal View History

2018-04-21 02:59:30 -03:00
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
2018-04-25 03:10:14 -03:00
<add name="iisnode" path="dist/src/app.js" verb="*" modules="iisnode"/>
2018-04-21 02:59:30 -03:00
</handlers>
<rewrite>
<rules>
<!-- Do not interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^server.js\/debug[\/]?" />
</rule>
<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}"/>
</rule>
<!-- All other URLs are mapped to the node.js site entry point -->
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
2018-04-25 03:10:14 -03:00
<action type="Rewrite" url="dist/src/app.js"/>
2018-04-21 02:59:30 -03:00
</rule>
</rules>
</rewrite>
<!-- 'bin' directory has no special meaning in node.js and apps can be placed in it -->
<security>
<requestFiltering>
<hiddenSegments>
<remove segment="bin"/>
</hiddenSegments>
</requestFiltering>
</security>
<!-- Make sure error responses are left untouched -->
<httpErrors existingResponse="PassThrough" />
</system.webServer>
</configuration>