Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ba8616f635
Fetching contributors…

Cannot retrieve contributors at this time

244 lines (244 sloc) 11.44 kb
<?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=152368
-->
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="Gallery:AzureStorageAccessKey" value="" />
<add key="Gallery:AzureStorageAccountName" value="" />
<add key="Gallery:AzureStorageBlobUrl" value="" />
<add key="Gallery:AzureCdnHost" value="" />
<add key="Gallery:GoogleAnalyticsPropertyId" value="" />
<add key="Gallery:PackageStoreType" value="" />
<add key="Gallery:ReleaseBranch" value="" />
<add key="Gallery:ReleaseName" value="" />
<add key="Gallery:ReleaseSha" value="" />
<add key="Gallery:ReleaseTime" value="" />
<add key="Gallery:UseAzureEmulator" value="true" />
<add key="Gallery:SiteRoot" value="http://nuget.org/" />
</appSettings>
<connectionStrings>
<!-- If you don't have Visual Studio 2012 installed, use this connection string instead of the LocalDB one for local testing -->
<!--<add name="NuGetGallery" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=NuGetGallery;Integrated Security=SSPI" providerName="System.Data.SqlClient" />-->
<add name="NuGetGallery" connectionString="Data Source=(LocalDB)\v11.0;Initial Catalog=NuGetGallery;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
</connectionStrings>
<elmah>
<security allowRemoteAccess="true" />
<errorFilter>
<test>
<equal binding="HttpStatusCode" value="404" type="Int32" />
</test>
</errorFilter>
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="NuGetGallery" />
</elmah>
<!-- Ensure only Admins may access elmah.axd -->
<location path="elmah.axd">
<system.web>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
<authorization>
<allow roles="Admins" />
<deny users="*" />
</authorization>
</system.web>
<system.webServer>
<handlers>
<add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
</system.webServer>
</location>
<!-- Allow some very specific set of name to be used with the ~/package and ~/api/vX/package/ routes -->
<location path="packages">
<system.web>
<httpHandlers configSource="Web.ForbiddenHandlers.config" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions allowUnlisted="true">
<remove fileExtension=".config" />
<remove fileExtension=".rules" />
<remove fileExtension=".resources" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</location>
<location path="api/v1/package">
<system.web>
<httpHandlers configSource="Web.ForbiddenHandlers.config" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions allowUnlisted="true">
<remove fileExtension=".config" />
<remove fileExtension=".rules" />
<remove fileExtension=".resources" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</location>
<location path="api/v2/package">
<system.web>
<httpHandlers configSource="Web.ForbiddenHandlers.config" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions allowUnlisted="true">
<remove fileExtension=".config" />
<remove fileExtension=".rules" />
<remove fileExtension=".resources" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</location>
<system.web>
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Users/Account/LogOn" timeout="2880" />
</authentication>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
<httpRuntime maxQueryStringLength="12000" maxRequestLength="2000000000" requestPathInvalidCharacters="&lt;,>,*,%,:,\,?" />
<httpModules>
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
</httpModules>
<httpHandlers>
</httpHandlers>
<customErrors mode="RemoteOnly" defaultRedirect="~/Errors/error.html">
<error statusCode="404" redirect="~/Errors/404" />
</customErrors>
<sessionState mode="Off" />
<machineKey decryption="AES" decryptionKey="F7FA540B4DFD82E5BB196B95D15FF81F326A376E646DCBB1BBEC568AB1447476" validation="SHA1" validationKey="326A376E646DCBB1BBEC568AB14474763BC5818A9DE62168764FF0DCE537184F0535D5D9AD66DEDC326A376E646DCBB1BBEC568AB14474763BC5818A97DC1ABF" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
</handlers>
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" path="/Errors/404" responseMode="ExecuteURL" />
<remove statusCode="500" subStatusCode="-1" />
<error statusCode="500" path="/Errors/Error.html" responseMode="ExecuteURL" />
</httpErrors>
<security>
<requestFiltering>
<requestLimits maxQueryString="12000" />
</requestFiltering>
</security>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimetype="application/json" enabled="true" />
<add mimetype="application/atom+xml" enabled="true" />
<add mimetype="application/atom+xml;charset=utf-8" enabled="true" />
<add mimeType="*/*" enabled="false" />
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimetype="application/json" enabled="true" />
<add mimetype="application/atom+xml" enabled="true" />
<add mimetype="application/atom+xml;charset=utf-8" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
<rewrite>
<rules>
<rule name="Legacy feed root URL" stopProcessing="true">
<match url="^$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^packages([0-9]?)\.nuget.org$" />
</conditions>
<action type="Redirect" url="http://packages.nuget.org/v1/FeedService.svc" redirectType="Permanent" />
</rule>
<rule name="Legacy image icon URL" stopProcessing="true">
<match url="^media/default/packages/([a-z0-9_][a-z0-9._-]*)/([0-9.]+)/[\w._ -]+\.([a-z]+)$" />
<action type="Redirect" url="https://nugetgallery.blob.core.windows.net/icons/{R:1}.{R:2}.{R:3}" redirectType="Permanent" />
</rule>
<rule name="Curated Feed Download URL" stopProcessing="true">
<match url="^api/v2/curated-feeds/package/" />
<action type="None" />
</rule>
<rule name="Curated Feed" stopProcessing="true">
<match url="^api/v2/curated-feeds/([^/]+)(.*)$" />
<action type="Rewrite" url="api/v2/curated-feed{R:2}?name={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="RouteMagic" publicKeyToken="84b59be021aa4cee" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.2.2.2" newVersion="0.2.2.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.3.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">
<parameters>
<parameter value="Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
</configuration>
Jump to Line
Something went wrong with that request. Please try again.