-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeb.config
More file actions
95 lines (84 loc) · 3.61 KB
/
Web.config
File metadata and controls
95 lines (84 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<authentication mode="None"/>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
<customErrors mode="Off"/>
<sessionState mode="InProc" timeout="525600" cookieless="UseCookies" cookieName="ASP.NET_SessionId" regenerateExpiredSessionId="true">
<providers>
<clear/>
</providers>
</sessionState>
</system.web>
<appSettings>
<add key="Desharp:Enabled" value="1"/>
<add key="Desharp:Output" value="html"/>
<!--add key="Desharp:DebugIps" value="127.0.0.1,::1" /-->
<add key="Desharp:Levels" value="exception,debug,info,-notice,-warning,error,critical,alert,emergency,javascript"/>
<add key="Desharp:Panels" value="Desharp.Panels.SystemInfo,Desharp.Panels.Session"/>
<add key="Desharp:Directory" value="~/Logs"/>
<add key="Desharp:ErrorPage" value="~/custom-server-error-page.html"/>
</appSettings>
<system.webServer>
<modules>
<remove name="OutputCache"/>
<remove name="WindowsAuthentication"/>
<remove name="FormsAuthentication"/>
<remove name="DefaultAuthentication"/>
<remove name="RoleManager"/>
<remove name="UrlAuthorization"/>
<remove name="FileAuthorization"/>
<remove name="AnonymousIdentification"/>
<remove name="Profile"/>
<remove name="UrlMappingsModule"/>
<remove name="ServiceModel-4.0"/>
<remove name="UrlRoutingModule-4.0"/>
<remove name="ScriptModule-4.0"/>
<!-- https://docs.microsoft.com/en-us/iis/configuration/system.webserver/modules/add -->
<add name="Desharp" type="Desharp.Module" preCondition="managedHandler" />
</modules>
<caching enabled="false" enableKernelCache="false"/>
<directoryBrowse enabled="false"/>
<security>
<requestFiltering>
<hiddenSegments>
<add segment="Desharp.config.example"/>
<add segment="Logs"/>
</hiddenSegments>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="All to empty Index.aspx to handle everything in Global.aspx" enabled="true" stopProcessing="true">
<match url="(.*)"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
</conditions>
<action type="Rewrite" url="Index.aspx?{R:1}"/>
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed"/>
<staticContent>
<mimeMap fileExtension=".md" mimeType="text/x-markdown"/>
</staticContent>
</system.webServer>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
</compilers>
</system.codedom>
</configuration>