mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 03:40:56 +08:00
committed by
Sébastien Ros
parent
ec22a1150d
commit
575fb7413f
@@ -6,6 +6,7 @@
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
<section name="glimpse" type="Glimpse.Core.Configuration.Section, Glimpse.Core" />
|
||||
</configSections>
|
||||
|
||||
<appSettings>
|
||||
@@ -98,19 +99,30 @@
|
||||
<add namespace="Orchard.Mvc.Html" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
|
||||
<httpModules>
|
||||
<add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" />
|
||||
</httpModules>
|
||||
<httpHandlers>
|
||||
<add path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" />
|
||||
</httpHandlers>
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<!-- Prevent IIS from only allowing integrated mode configuration. -->
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
|
||||
<modules runAllManagedModulesForAllRequests="false">
|
||||
<remove name="OutputCache" />
|
||||
<remove name="WarmupHttpModule" />
|
||||
<add name="WarmupHttpModule" type="Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter, Version=1.10, Culture=neutral" />
|
||||
<add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" preCondition="integratedMode" />
|
||||
</modules>
|
||||
<handlers accessPolicy="Script">
|
||||
<!-- Clear all handlers, prevents executing code file extensions or returning any file contents. -->
|
||||
<clear />
|
||||
<!-- Ensure the Glimpse handlers is added before the 404 catch all handler. -->
|
||||
<add name="Glimpse" path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" preCondition="integratedMode" />
|
||||
<!-- Return 404 for all requests via a managed handler. The URL routing handler will substitute the MVC request handler when routes match. -->
|
||||
<add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script" />
|
||||
<!-- WebApi -->
|
||||
@@ -255,4 +267,34 @@
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
|
||||
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
|
||||
<logging level="Error" logLocation="App_data/Logs/Glimpse.log" />
|
||||
<tabs>
|
||||
<ignoredTypes>
|
||||
<add type="Glimpse.Mvc.Tab.Views, Glimpse.Mvc5" />
|
||||
<add type="Glimpse.Mvc.Tab.ModelBinding, Glimpse.Mvc5" />
|
||||
<add type="Glimpse.Mvc.Tab.Metadata, Glimpse.Mvc5" />
|
||||
<add type="Glimpse.AspNet.Tab.Cache, Glimpse.AspNet" />
|
||||
<add type="Glimpse.AspNet.Tab.Routes, Glimpse.AspNet" />
|
||||
<add type="Glimpse.AspNet.Tab.Session, Glimpse.AspNet" />
|
||||
</ignoredTypes>
|
||||
</tabs>
|
||||
<inspectors>
|
||||
<ignoredTypes>
|
||||
<add type="Glimpse.Mvc.Inspector.ViewEngineInspector, Glimpse.Mvc5" />
|
||||
<add type="Glimpse.Mvc.Inspector.DependencyInjectionInspector, Glimpse.Mvc5" />
|
||||
<add type="Glimpse.Mvc.Inspector.ModelBinderInspector, Glimpse.Mvc5" />
|
||||
<add type="Glimpse.AspNet.Inspector.RoutesInspector, Glimpse.AspNet" />
|
||||
</ignoredTypes>
|
||||
</inspectors>
|
||||
<runtimePolicies>
|
||||
<ignoredTypes>
|
||||
<!-- Uncomment the line below to allow Glimpse to be enabled for remote requests -->
|
||||
<!-- NOTE: If you uncomment this line, you can still restrict access to a set of whitelisted IP Address by adding the app setting `Orchard.Glimpse:WhitelistedIpAddresses` with a value of a semi colon separated IP Addresses to allow into the `appSettings` section of this file -->
|
||||
<!--<add type="Glimpse.AspNet.Policy.LocalPolicy, Glimpse.AspNet" />-->
|
||||
</ignoredTypes>
|
||||
</runtimePolicies>
|
||||
<!--For more information on how to configure Glimpse, please visit http://getglimpse.com/Help/Configuration or access {your site}/Glimpse.axd for even more details and a Configuration Tool to support you.-->
|
||||
</glimpse>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user