Skip to content

Instantly share code, notes, and snippets.

@Mitch528 Mitch528/Web.config Secret
Created Apr 10, 2016

Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="RedisConnectionString" connectionString="" />
<add name="ElasticSearchConnectionString" connectionString="http://localhost:9200" />
</connectionStrings>
<appSettings>
<!-- Base url for the ui used to build links in emails and other places. -->
<add key="BaseURL" value="http://localhost:8003" />
<!-- Controls whether SSL is required. Only enable this if you have SSL configured. -->
<add key="EnableSSL" value="false" />
<!--
Dev: Use this mode when debugging. (Outbound emails restricted)
QA: Use this mode when deployed to staging. (Outbound emails restricted)
Production: Use this mode when deployed to production.
-->
<add key="WebsiteMode" value="Production" />
<!-- Email addresses that match this comma delimited list of domains and email addresses will be allowed to be sent out in Dev and QA mode -->
<add key="AllowedOutboundAddresses" value="exceptionless.io,codesmithtools.com" />
<!-- All emails that do not match the AllowedOutboundAddresses will be sent to this address in Dev and QA mode -->
<add key="TestEmailAddress" value="noreply@exceptionless.io" />
<!-- Controls whether users can signup. -->
<add key="EnableAccountCreation" value="true" />
<!-- Controls whether daily summary emails are sent -->
<add key="EnableDailySummary" value="true" />
<!-- Folder used to store event post data -->
<add key="StorageFolder" value="|DataDirectory|\storage" />
<!-- Runs the jobs in the current website process -->
<add key="RunJobsInProcess" value="true" />
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.net>
<mailSettings>
<smtp from="Exceptionless &lt;noreply@exceptionless.io&gt;">
<network host="localhost" port="25" />
</smtp>
</mailSettings>
<defaultProxy enabled="true" />
</system.net>
<system.web>
<authentication mode="None" />
<compilation targetFramework="4.6" debug="false" />
<httpRuntime targetFramework="4.6" maxUrlLength="1024" />
<customErrors mode="RemoteOnly" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="FormsAuthentication" />
<!-- <remove name="RewriteModule" /> -->
<remove name="RoleManager" />
<remove name="WebDAVModule" />
</modules>
<urlCompression doStaticCompression="true" />
<httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
<httpProtocol>
<customHeaders>
<!--<add name="Arr-Disable-Session-Affinity" value="true" />-->
<remove name="Server" />
<remove name="X-Powered-By" />
<remove name="X-AspNet-Version" />
</customHeaders>
</httpProtocol>
<handlers>
<remove name="OPTIONS" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACE" />
<remove name="TRACEVerbHandler" />
<remove name="WebDAV" />
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
<rewrite><rules><clear /><rule name="Redirect HTTP to HTTPS"><match url="^(.*)$" /><conditions><add input="{HTTPS}" pattern="^OFF$" /><add input="{HTTP_HOST}" matchType="Pattern" pattern="\:8003$" negate="true" /><add input="{HTTP_HOST}" matchType="Pattern" pattern="^local-app.exceptionless.io$" negate="true" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /></rule><rule name="Redirect HTTPS to HTTP"><match url="^(.*)$" /><conditions><add input="{HTTPS}" pattern="^ON$" /><add input="{HTTP_HOST}" matchType="Pattern" pattern="^local-app.exceptionless.io$" /></conditions><action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /></rule><rule name="Redirects to be.exceptionless.io" stopProcessing="true"><match url="(.*)" /><conditions logicalGrouping="MatchAll"><add input="{HTTP_HOST}" pattern="^app.exceptionless.com$" ignoreCase="true" /></conditions><action type="Redirect" url="https://be.exceptionless.io/{R:0}" redirectType="Temporary" /></rule><rule name="Redirect images" stopProcessing="true"><match url="^images/(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Redirect" url="img/{R:1}" redirectType="Temporary" /></rule><rule name="Redirect legacy dashboard to new dashboard" stopProcessing="true"><match url="^project/([a-zA-Z\d]{24,36})$" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Redirect" url="project/{R:1}/error/dashboard" redirectType="Temporary" /></rule><rule name="Redirect legacy dashboard" stopProcessing="true"><match url="^project/$" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Redirect" url="type/error/dashboard" redirectType="Temporary" /></rule><rule name="Redirect error/stack-id/error-id to event/id" stopProcessing="true"><match url="^error/([a-zA-Z\d]{24,36})/([a-zA-Z\d]{24,36})$" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Redirect" url="event/{R:2}" redirectType="Temporary" /></rule><rule name="Redirect error to event" stopProcessing="true"><match url="^error/([a-zA-Z\d]{24,36})$" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Redirect" url="event/{R:1}" redirectType="Temporary" /></rule><rule name="Redirect legacy login page with token" stopProcessing="true"><match url="^account/login" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{QUERY_STRING}" pattern="token=([a-zA-Z\d]{24,36})" /></conditions><action type="Redirect" url="login/{C:1}" redirectType="Temporary" /></rule><rule name="Redirect legacy login page" stopProcessing="true"><match url="^account/login" /><action type="Redirect" url="login" redirectType="Temporary" /></rule><rule name="Redirect reset password" stopProcessing="true"><match url="^account/resetpassword" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{QUERY_STRING}" pattern="token=([a-zA-Z\d]{24,36})" /></conditions><action type="Redirect" url="reset-password/{C:1}" redirectType="Temporary" /></rule><rule name="PushState" stopProcessing="true"><match url=".*" /><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /><add input="{REQUEST_FILENAME}" pattern=".*[^.]*\.[\d\w]+$" negate="true" /></conditions><action type="Rewrite" url="/" /></rule></rules></rewrite>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SimpleInjector" publicKeyToken="984cb50dea722e99" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.FileSystems" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SimpleInjector.Extensions.ExecutionContextScoping" publicKeyToken="984cb50dea722e99" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<location path="index.html">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
</staticContent>
</system.webServer>
</location>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.