mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 21:17:14 +08:00
Removed secutiry patch and updated Azure project
--HG-- branch : dev
This commit is contained in:
parent
5fca0e53e3
commit
494b7f1d78
@ -18,7 +18,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(LibFolder)\msbuild\MSBuild.Community.Tasks.Targets"/>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Cloud Service\1.0\Microsoft.CloudService.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Cloud Service\1.0\Visual Studio 10.0\Microsoft.CloudService.targets" />
|
||||
|
||||
<!-- Coordinating Targets -->
|
||||
|
||||
|
@ -1,27 +0,0 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="System.Security.Cryptography" %>
|
||||
<%@ Import Namespace="System.Threading" %>
|
||||
|
||||
<script runat="server">
|
||||
void Page_Load() {
|
||||
byte[] delay = new byte[1];
|
||||
RandomNumberGenerator prng = new RNGCryptoServiceProvider();
|
||||
|
||||
prng.GetBytes(delay);
|
||||
Thread.Sleep((int)delay[0]);
|
||||
|
||||
IDisposable disposable = prng as IDisposable;
|
||||
if (disposable != null) { disposable.Dispose(); }
|
||||
}
|
||||
</script>
|
||||
|
||||
<html>
|
||||
<head id="Head1" runat="server">
|
||||
<title>Error</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
An error occurred while processing your request.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -6,7 +6,7 @@
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{0DF8F426-9F30-4918-8F64-A5B40BA12D10}</ProjectGuid>
|
||||
<ProjectTypeGuids>{e53f8fea-eae0-44a6-8774-ffd645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Orchard.Azure.Web</RootNamespace>
|
||||
@ -146,7 +146,6 @@
|
||||
<Compile Include="WebRole.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Error.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@ -167,10 +166,6 @@
|
||||
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
|
||||
<Name>Orchard.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Futures.Widgets\Futures.Widgets.csproj">
|
||||
<Project>{E65E5633-C0FF-453C-A906-481C14F969D6}</Project>
|
||||
<Name>Futures.Widgets</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Lucene\Lucene.csproj">
|
||||
<Project>{D5D447D7-EF8E-43A6-B9A4-3B025DD9F45D}</Project>
|
||||
<Name>Lucene</Name>
|
||||
@ -179,6 +174,10 @@
|
||||
<Project>{63FBD4D9-E1DA-4A7B-AA6A-D6074FE50867}</Project>
|
||||
<Name>Orchard.Blogs</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.CodeGeneration\Orchard.CodeGeneration.csproj">
|
||||
<Project>{C0C45321-B51D-4D8D-9B7B-AA4C2E0B2962}</Project>
|
||||
<Name>Orchard.CodeGeneration</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.Comments\Orchard.Comments.csproj">
|
||||
<Project>{14C049FD-B35B-415A-A824-87F26B26E7FD}</Project>
|
||||
<Name>Orchard.Comments</Name>
|
||||
@ -187,9 +186,9 @@
|
||||
<Project>{0E7646E8-FE8F-43C1-8799-D97860925EC4}</Project>
|
||||
<Name>Orchard.ContentTypes</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.DevTools\Orchard.DevTools.csproj">
|
||||
<Project>{67C1D3AF-A0EC-46B2-BAE1-DF1DA8E0B890}</Project>
|
||||
<Name>Orchard.DevTools</Name>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.Experimental\Orchard.Experimental.csproj">
|
||||
<Project>{AB3C207C-0126-4143-8D62-1119DF80D366}</Project>
|
||||
<Name>Orchard.Experimental</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.Indexing\Orchard.Indexing.csproj">
|
||||
<Project>{EA2B9121-EF54-40A6-A53E-6593C86EE696}</Project>
|
||||
@ -215,10 +214,6 @@
|
||||
<Project>{D10AD48F-407D-4DB5-A328-173EC7CB010F}</Project>
|
||||
<Name>Orchard.Roles</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.Sandbox\Orchard.Sandbox.csproj">
|
||||
<Project>{17C44253-65A2-4597-98C7-16EE576824B6}</Project>
|
||||
<Name>Orchard.Sandbox</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Modules\Orchard.Search\Orchard.Search.csproj">
|
||||
<Project>{4BE4EB01-AC56-4048-924E-2CA77F509ABA}</Project>
|
||||
<Name>Orchard.Search</Name>
|
||||
|
@ -8,9 +8,31 @@
|
||||
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.razor.web" type="System.Razor.Web.Configuration.SystemRazorWebSectionGroup, System.Razor.Web">
|
||||
<section name="host" type="System.Razor.Web.Configuration.HostSection, System.Razor.Web" requirePermission="false" />
|
||||
<section name="pages" type="System.Razor.Web.Configuration.RazorPagesSection, System.Razor.Web" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<appSettings/>
|
||||
<system.diagnostics configSource="Config\Diagnostics.config"/>
|
||||
|
||||
<system.razor.web>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
|
||||
<namespaces>
|
||||
<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.Linq"/>
|
||||
<add namespace="System.Collections.Generic"/>
|
||||
<add namespace="Orchard.Mvc.Html"/>
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.razor.web>
|
||||
|
||||
<!--
|
||||
Set default transaction timeout to 30 minutes so that interactive debugging
|
||||
is easier (default timeout is less than one minute)
|
||||
@ -20,6 +42,7 @@
|
||||
</system.transactions>
|
||||
<system.web>
|
||||
<machineKey validationKey="013B82F217ABB7EAB1F699E4E5B4D290030644D435994692354DAE82B06568B058BFE3C57BF199A41FFDBC84F3BC74D9C5BD96D1265F36A22D58347B591AC8DD" decryptionKey="04797035C490263D73ED991C84C5DFCD0D0206AD4F12BC3638A38FBEABEBB8C7" validation="SHA1" decryption="AES" />
|
||||
|
||||
<httpRuntime requestValidationMode="2.0" />
|
||||
<!--
|
||||
Set compilation debug="true" to insert debugging
|
||||
@ -46,39 +69,13 @@
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="~/Users/Account/AccessDenied" timeout="2880"/>
|
||||
</authentication>
|
||||
<membership defaultProvider="OrchardMembershipProvider">
|
||||
<providers>
|
||||
<clear/>
|
||||
<!--<add name="AspNetSqlMembershipProvider"
|
||||
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
|
||||
connectionStringName="ApplicationServices"
|
||||
enablePasswordRetrieval="false"
|
||||
enablePasswordReset="true"
|
||||
requiresQuestionAndAnswer="false"
|
||||
requiresUniqueEmail="false"
|
||||
passwordFormat="Hashed"
|
||||
maxInvalidPasswordAttempts="5"
|
||||
minRequiredPasswordLength="6"
|
||||
minRequiredNonalphanumericCharacters="0"
|
||||
passwordAttemptWindow="10"
|
||||
passwordStrengthRegularExpression=""
|
||||
applicationName="/"
|
||||
/>-->
|
||||
<add name="OrchardMembershipProvider" type="Orchard.Security.Providers.OrchardMembershipProvider, Orchard.Framework" applicationName="/"/>
|
||||
</providers>
|
||||
</membership>
|
||||
<profile>
|
||||
<providers>
|
||||
<clear/>
|
||||
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/"/>
|
||||
</providers>
|
||||
</profile>
|
||||
|
||||
<roleManager enabled="false">
|
||||
<providers>
|
||||
<clear/>
|
||||
<add name="OrchardRoleProvider" type="Orchard.Security.Providers.OrchardRoleProvider, Orchard.Framework"/>
|
||||
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
||||
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
|
||||
<!--<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>-->
|
||||
<!--<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>-->
|
||||
</providers>
|
||||
</roleManager>
|
||||
<!--
|
||||
@ -88,7 +85,7 @@
|
||||
it enables developers to configure html error pages
|
||||
to be displayed in place of a error stack trace.
|
||||
-->
|
||||
<customErrors mode="RemoteOnly" redirectMode="ResponseRewrite" defaultRedirect="~/Error.aspx"/>
|
||||
<customErrors mode="Off" />
|
||||
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc"/>
|
||||
@ -101,17 +98,11 @@
|
||||
</namespaces>
|
||||
</pages>
|
||||
<httpHandlers>
|
||||
<!-- Explicitly remove not necessary handlers -->
|
||||
<remove path="eurl.axd" verb="*" />
|
||||
<remove path="trace.axd" verb="*" />
|
||||
<remove path="WebResource.axd" verb="*" />
|
||||
<remove path="*_AppService.axd" verb="*" />
|
||||
<remove path="ScriptResource.axd" verb="*" />
|
||||
<remove path="*.rem" verb="*" />
|
||||
<remove path="*.xoml" verb="*" />
|
||||
<remove path="*.xamlx" verb="*" />
|
||||
|
||||
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
|
||||
<!-- Block access to module and theme definition files -->
|
||||
<add verb="*" path="module.txt" validate="false" type="System.Web.HttpNotFoundHandler" />
|
||||
<add verb="*" path="theme.txt" validate="false" type="System.Web.HttpNotFoundHandler" />
|
||||
</httpHandlers>
|
||||
</system.web>
|
||||
<system.web.extensions/>
|
||||
@ -124,38 +115,13 @@
|
||||
<modules runAllManagedModulesForAllRequests="true">
|
||||
</modules>
|
||||
<handlers>
|
||||
<!-- Explicitly remove not necessary handlers -->
|
||||
<!--remove path="trace.axd" verb="*" /-->
|
||||
<remove name="TraceHandler-Integrated-4.0" />
|
||||
|
||||
<!-- remove path="WebResource.axd" verb="*" /-->
|
||||
<remove name="AssemblyResourceLoader-Integrated" />
|
||||
<remove name="AssemblyResourceLoader-Integrated-4.0" />
|
||||
|
||||
<!-- remove path="ScriptResource.axd" verb="*" /-->
|
||||
<remove name="ScriptResourceIntegrated-4.0" />
|
||||
|
||||
<!-- remove path="*_AppService.axd" verb="*" /-->
|
||||
<remove name="ScriptHandlerFactoryAppServices-Integrated-4.0" />
|
||||
|
||||
<!-- remove path="*.rem" verb="*" /-->
|
||||
<remove name="HttpRemotingHandlerFactory-rem-Integrated-4.0" />
|
||||
<remove name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_32bit" />
|
||||
<remove name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_64bit" />
|
||||
|
||||
<!-- remove path="*.xamlx" verb="*" /-->
|
||||
<remove name="xamlx-Integrated-4.0" />
|
||||
<remove name="xamlx-ISAPI-4.0_32bit" />
|
||||
<remove name="xamlx-ISAPI-4.0_64bit" />
|
||||
|
||||
<!-- remove path="*.xoml" verb="*" /-->
|
||||
<remove name="xoml-Integrated-4.0" />
|
||||
<remove name="xoml-ISAPI-4.0_32bit" />
|
||||
<remove name="xoml-ISAPI-4.0_64bit" />
|
||||
|
||||
<remove name="MvcHttpHandler"/>
|
||||
<remove name="UrlRoutingHandler"/>
|
||||
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
|
||||
|
||||
<!-- Block access to module and theme definition files -->
|
||||
<add name="moduleHttpNotFoundHandler" preCondition="integratedMode" verb="*" path="module.txt" type="System.Web.HttpNotFoundHandler" />
|
||||
<add name="themeHttpNotFoundHandler" preCondition="integratedMode" verb="*" path="theme.txt" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
|
@ -1,27 +0,0 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="System.Security.Cryptography" %>
|
||||
<%@ Import Namespace="System.Threading" %>
|
||||
|
||||
<script runat="server">
|
||||
void Page_Load() {
|
||||
byte[] delay = new byte[1];
|
||||
RandomNumberGenerator prng = new RNGCryptoServiceProvider();
|
||||
|
||||
prng.GetBytes(delay);
|
||||
Thread.Sleep((int)delay[0]);
|
||||
|
||||
IDisposable disposable = prng as IDisposable;
|
||||
if (disposable != null) { disposable.Dispose(); }
|
||||
}
|
||||
</script>
|
||||
|
||||
<html>
|
||||
<head id="Head1" runat="server">
|
||||
<title>Error</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
An error occurred while processing your request.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -98,7 +98,6 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Advisory.html" />
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="Error.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="Refresh.html" />
|
||||
<Content Include="Themes\Contoso\Styles\search.css" />
|
||||
|
@ -69,6 +69,7 @@
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="~/Users/Account/AccessDenied" timeout="2880"/>
|
||||
</authentication>
|
||||
|
||||
<roleManager enabled="false">
|
||||
<providers>
|
||||
<clear/>
|
||||
@ -84,7 +85,7 @@
|
||||
it enables developers to configure html error pages
|
||||
to be displayed in place of a error stack trace.
|
||||
-->
|
||||
<customErrors mode="RemoteOnly" redirectMode="ResponseRewrite" defaultRedirect="~/Error.aspx"/>
|
||||
<customErrors mode="Off" />
|
||||
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc"/>
|
||||
@ -97,16 +98,6 @@
|
||||
</namespaces>
|
||||
</pages>
|
||||
<httpHandlers>
|
||||
<!-- Explicitly remove not necessary handlers -->
|
||||
<remove path="eurl.axd" verb="*" />
|
||||
<remove path="trace.axd" verb="*" />
|
||||
<remove path="WebResource.axd" verb="*" />
|
||||
<remove path="*_AppService.axd" verb="*" />
|
||||
<remove path="ScriptResource.axd" verb="*" />
|
||||
<remove path="*.rem" verb="*" />
|
||||
<remove path="*.xoml" verb="*" />
|
||||
<remove path="*.xamlx" verb="*" />
|
||||
|
||||
<add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
|
||||
<!-- Block access to module and theme definition files -->
|
||||
@ -124,35 +115,6 @@
|
||||
<modules runAllManagedModulesForAllRequests="true">
|
||||
</modules>
|
||||
<handlers>
|
||||
<!-- Explicitly remove not necessary handlers -->
|
||||
<!--remove path="trace.axd" verb="*" /-->
|
||||
<remove name="TraceHandler-Integrated-4.0" />
|
||||
|
||||
<!-- remove path="WebResource.axd" verb="*" /-->
|
||||
<remove name="AssemblyResourceLoader-Integrated" />
|
||||
<remove name="AssemblyResourceLoader-Integrated-4.0" />
|
||||
|
||||
<!-- remove path="ScriptResource.axd" verb="*" /-->
|
||||
<remove name="ScriptResourceIntegrated-4.0" />
|
||||
|
||||
<!-- remove path="*_AppService.axd" verb="*" /-->
|
||||
<remove name="ScriptHandlerFactoryAppServices-Integrated-4.0" />
|
||||
|
||||
<!-- remove path="*.rem" verb="*" /-->
|
||||
<remove name="HttpRemotingHandlerFactory-rem-Integrated-4.0" />
|
||||
<remove name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_32bit" />
|
||||
<remove name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_64bit" />
|
||||
|
||||
<!-- remove path="*.xamlx" verb="*" /-->
|
||||
<remove name="xamlx-Integrated-4.0" />
|
||||
<remove name="xamlx-ISAPI-4.0_32bit" />
|
||||
<remove name="xamlx-ISAPI-4.0_64bit" />
|
||||
|
||||
<!-- remove path="*.xoml" verb="*" /-->
|
||||
<remove name="xoml-Integrated-4.0" />
|
||||
<remove name="xoml-ISAPI-4.0_32bit" />
|
||||
<remove name="xoml-ISAPI-4.0_64bit" />
|
||||
|
||||
<remove name="MvcHttpHandler"/>
|
||||
<remove name="UrlRoutingHandler"/>
|
||||
<add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
|
||||
|
Loading…
Reference in New Issue
Block a user