Skip to content

Instantly share code, notes, and snippets.

@freshlogic
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshlogic/c2b3de000229a1b05221 to your computer and use it in GitHub Desktop.
Save freshlogic/c2b3de000229a1b05221 to your computer and use it in GitHub Desktop.
ServiceDefinition.csdef
<?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="example-com" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WebRole" vmsize="Small">
<Certificates>
<Certificate name="example-com" storeLocation="LocalMachine" storeName="CA" />
</Certificates>
<Imports />
<Startup>
<Task commandLine="setup_web.cmd &gt; log.txt" executionContext="elevated">
<Environment>
<Variable name="EMULATED">
<RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" />
</Variable>
<Variable name="RUNTIMEID" value="node;iisnode" />
<Variable name="RUNTIMEURL" value="" />
</Environment>
</Task>
<Task commandLine="alwaysRunning.cmd" executionContext="elevated" />
<Task commandLine="idleTimeout.cmd" executionContext="elevated" />
<Task commandLine="web-ip-security.cmd" executionContext="elevated" />
</Startup>
<Endpoints>
<InputEndpoint name="http" protocol="http" port="80" />
<InputEndpoint name="https" protocol="https" port="443" certificate="example-com" />
</Endpoints>
<Sites>
<Site name="example-com">
<Bindings>
<Binding name="http" endpointName="http" />
<Binding name="https" endpointName="https" />
</Bindings>
</Site>
</Sites>
</WebRole>
</ServiceDefinition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment