diff options
Diffstat (limited to 'src/web.config')
-rw-r--r-- | src/web.config | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/web.config b/src/web.config new file mode 100644 index 00000000..e057b919 --- /dev/null +++ b/src/web.config @@ -0,0 +1,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> |