summaryrefslogtreecommitdiff
path: root/src/web.config
blob: e057b91985072dea4003ab8d6de63ef8a77747f0 (plain)
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
32
<configuration>
  <system.webServer>

    <handlers>
      <add name="iisnode" path="node_modules/ep_etherpad-lite/node/server.js" verb="*" modules="iisnode" />
    </handlers>

    <rewrite>
        <rules>
            <!-- uncomment this section to enable debugging
            <rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
                <match url="iisnode"/>
                <action type="Rewrite" url="node_modules/ep_etherpad-lite/node/iisnode" />
            </rule>
            <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">                    
                <match url="^server.js\/debug[\/]?" />
            </rule>
            -->
            <rule name="StaticContent">
                 <action type="Rewrite" url="public{{REQUEST_URI}}"/>
            </rule>
            <rule name="DynamicContent">
                 <conditions>
                      <add input="{{REQUEST_FILENAME}}" matchType="IsFile" negate="True"/>
                 </conditions>
                <action type="Rewrite" url="node_modules/ep_etherpad-lite/node/server.js" />
            </rule>
        </rules>
    </rewrite>

  </system.webServer>
</configuration>