forked from superzadeh/MarkdownServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
31 lines (31 loc) · 931 Bytes
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encofing="UTF-8"?>
<configuration>
<appSettings>
<add key="NTLM_DOMAIN" value="" />
<add key="MARKDOWN_EXTERNAL_ROOT" value="" />
</appSettings>
<system.webServer>
<!-- Indicate IIS to use iisnode to handle requests to src/listen.js -->
<handlers>
<add name="iisnode" path="src/listen.js" verb="GET" modules="iisnode" />
</handlers>
<!-- route all request to the src/listen.js file -->
<rewrite>
<rules>
<rule name="root">
<match url="/*" />
<action type="Rewrite" url="src/listen.js" />
</rule>
</rules>
</rewrite>
<!-- exclude node_modules directory and subdirectories from serving
by IIS since these are implementation details of node.js applications -->
<security>
<requestFiltering>
<hiddenSegments>
<add segment="node_modules" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>