gyhlw_dotnet/网站项目/VRS/Web.config

129 lines
5.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="ConnectionString" value="Server=localhost; Port=3306;Allow User Variables=True;Database=gyhlw;User ID = root;Password=Unity3du#d112233;Charset=gbk;convert zero datetime=True" />
<add key="SystemName" value="01" />
<!--模式 0 考试考核、 1 实训考核 -->
<add key="KsMode" value="0,考试考核;1,实训考核" />
<!--是否测试环境 1 是, 其他值:否-->
<add key="is_test" value="0" />
<!--缓存时间 单位 分钟-->
<add key="ModelCache" value="60" />
<add key="cos_sign_path" value="E:\netcoreapp2.1\demo.dll" />
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
<!--AES_KEY-->
<add key="AES_KEY" value="12345678900000001234567890000000" />
<!--AES_IV-->
<add key="AES_IV" value="1234567890000000" />
</appSettings>
<system.web>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.6">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<httpRuntime targetFramework="4.6" maxRequestLength="20971520" maxQueryStringLength="2097151" enableVersionHeader="false" />
<pages>
<namespaces>
<add namespace="System.Web.Optimization" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
</controls>
</pages>
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</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:default /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:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
</compilers>
</system.codedom>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
</staticContent>
<security>
<requestFiltering removeServerHeader="true">
<requestLimits maxQueryString="999999999" maxAllowedContentLength="4000000000"></requestLimits>
</requestFiltering>
</security>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</handlers>
<defaultDocument>
<files>
<add value="Login.aspx" />
</files>
</defaultDocument>
<httpProtocol>
<customHeaders>
<clear/>
<add name="X-Frame-Options" value="SAMEORIGIN" />
<add name="Referrer-Policy" value="no-referrer" />
<!--<add name="Content-Security-Policy" value="default-src 'none';
frame-src 'self' ;
frame-ancestors 'self' ;
object-src 'self' ;
connect-src 'self' ;
script-src 'self' 'unsafe-inline' 'unsafe-eval' ;
style-src 'self' 'unsafe-inline' ;
img-src 'self' ;
" />-->
<add name="X-Content-Type-Options" value="nosniff" />
</customHeaders>
</httpProtocol>
<httpErrors errorMode="Custom" existingResponse="Auto" defaultResponseMode="ExecuteURL">
<remove statusCode="403"/>
<error statusCode="403" responseMode="ExecuteURL" path="/Util/Error.aspx?id=404 Not Found" />
</httpErrors>
<modules>
<add name="QueryStringModule" type="VRS.QueryStringModule,VRS" />
</modules>
</system.webServer>
</configuration>