Permalink
Browse files

Add Azure config files

  • Loading branch information...
1 parent b1c269b commit ee9d89e0648ac88c4857ff414a94f7ad8263f6d3 @piscisaureus committed Jan 25, 2012
Showing with 46 additions and 0 deletions.
  1. +13 −0 ServiceDefinition.csdef
  2. +33 −0 Web.cloud.config
View
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ServiceDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="groeten-uit-amsterdam" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
+ <WebRole name="WebRole1" vmsize="ExtraSmall">
+ <LocalResources>
+ <LocalStorage name="DiagnosticStore" sizeInMB="4096" cleanOnRoleRecycle="false" />
+ </LocalResources>
+ <ConfigurationSettings />
+ <Endpoints>
+ <InputEndpoint name="Endpoint1" protocol="http" port="80" localPort="80" />
+ </Endpoints>
+ <Certificates />
+ </WebRole>
+</ServiceDefinition>
View
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ For more information on how to configure your ASP.NET application, please visit
+ http://go.microsoft.com/fwlink/?LinkId=169433
+ -->
+<configuration>
+ <system.webServer>
+ <modules runAllManagedModulesForAllRequests="false" />
+
+ <!-- NOTE: You probably want to set these to false when deploying to production -->
+ <iisnode
+ debuggingEnabled="false"
+ loggingEnabled="true"
+ devErrorsEnabled="true"
+ />
+
+ <!-- indicates that the server.js file is a node.js application
+ to be handled by the iisnode module -->
+ <handlers>
+ <add name="iisnode" path="server.js" verb="*" modules="iisnode" />
+ </handlers>
+ <rewrite>
+ <rules>
+ <clear />
+ <rule name="app" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
+ <match url="server\.js.+" negate="true" />
+ <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
+ <action type="Rewrite" url="server.js" />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration>

0 comments on commit ee9d89e

Please sign in to comment.