Web.config 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. https://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <connectionStrings>
  8. <add name="mysql" connectionString="Server=60.212.16.249;Uid=root;Pwd={cp55128-mysql-kjh-@2019};Connection Timeout=2880000;Database=cp55128;Port=3306;SslMode=none;CharSet=utf8;Convert Zero Datetime=True;Allow Zero Datetime=True" providerName="MySql.Data.MySqlClient" />
  9. </connectionStrings>
  10. <appSettings>
  11. <!--api开奖号缓存清理接口-->
  12. <add key="api55128" value="http://60.212.16.249" />
  13. <add key="ApiKey" value="{APIKEY-api.55128.cn-kjh.opencode.new}" />
  14. <add key="webpages:Version" value="3.0.0.0" />
  15. <add key="webpages:Enabled" value="false" />
  16. <add key="ClientValidationEnabled" value="true" />
  17. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  18. <!--zx.55128.cn相关配置-->
  19. <add key="ZxUrl" value="http://60.212.16.247:8080/api/" />
  20. <add key="ZxCode" value="ZX" />
  21. <add key="RouteXml" value="/ConfigXml/Route.xml" />
  22. <add key="HomeRouteXml" value="/ConfigXml/HomeRoute.xml" />
  23. <add key="WhatXml" value="/ConfigXml/What.xml" />
  24. <add key="NewsXml" value="/ConfigXml/News.xml" />
  25. <add key="Route_NewToOldXml" value="/ConfigXml/Route_NewToOld.xml" />
  26. <add key="HkXml" value="/ConfigXml/Hk.xml" />
  27. </appSettings>
  28. <system.web>
  29. <compilation debug="true" targetFramework="4.6.1" />
  30. <httpRuntime targetFramework="4.6.1" />
  31. <httpModules>
  32. <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" />
  33. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
  34. </httpModules>
  35. </system.web>
  36. <system.webServer>
  37. <handlers>
  38. <add name="hh" verb="GET,HEAD" path="*.*" type="System.Web.StaticFileHandler" />
  39. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  40. <remove name="OPTIONSVerbHandler" />
  41. <remove name="TRACEVerbHandler" />
  42. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  43. </handlers>
  44. <validation validateIntegratedModeConfiguration="false" />
  45. <modules>
  46. <remove name="ApplicationInsightsWebTracking" />
  47. <remove name="TelemetryCorrelationHttpModule" />
  48. <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="managedHandler" />
  49. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
  50. </modules>
  51. <!--<httpErrors errorMode="Custom">
  52. <remove statusCode="404" subStatusCode="-1" />
  53. <error statusCode="404" prefixLanguageFilePath="" path="/error/404/" responseMode="ExecuteURL" />
  54. <remove statusCode="500" subStatusCode="-1" />
  55. <error statusCode="500" prefixLanguageFilePath="" path="/error/500/" responseMode="ExecuteURL" />
  56. </httpErrors>-->
  57. <!--<rewrite>
  58. <rules>
  59. <rule name="HTTP to HTTPS redirect" stopProcessing="true">
  60. <match url="(.*)" />
  61. <conditions>
  62. <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  63. </conditions>
  64. <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
  65. </rule>
  66. </rules>
  67. </rewrite>-->
  68. </system.webServer>
  69. <runtime>
  70. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  71. <dependentAssembly>
  72. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  73. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  74. </dependentAssembly>
  75. <dependentAssembly>
  76. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  77. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  78. </dependentAssembly>
  79. <dependentAssembly>
  80. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  81. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  82. </dependentAssembly>
  83. <dependentAssembly>
  84. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  85. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  86. </dependentAssembly>
  87. <dependentAssembly>
  88. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  89. <bindingRedirect oldVersion="0.0.0.0-1.2.11.0" newVersion="1.2.11.0" />
  90. </dependentAssembly>
  91. </assemblyBinding>
  92. </runtime>
  93. <system.codedom>
  94. <compilers>
  95. <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
  96. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  97. </compilers>
  98. </system.codedom>
  99. </configuration>