The next generation of the Teknik Services. Written in ASP.NET. Fork for blog tags.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Web.config 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. For more information on how to configure your ASP.NET application, please visit
  4. http://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <configSections>
  8. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  9. </configSections>
  10. <connectionStrings configSource="App_Data\ConnectionStrings.config" />
  11. <!-- Create ConnectionStrings.config and add your connection string-->
  12. <appSettings>
  13. <add key="webpages:Version" value="3.0.0.0" />
  14. <add key="webpages:Enabled" value="false" />
  15. <add key="ClientValidationEnabled" value="true" />
  16. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  17. <add key="RouteDebugger:Enabled" value="false" />
  18. </appSettings>
  19. <system.web>
  20. <customErrors mode="Off" />
  21. <authentication mode="Forms">
  22. <forms domain=".teknik.io" protection="All" enableCrossAppRedirects="true" name="TeknikAuth" />
  23. </authentication>
  24. <compilation debug="true" targetFramework="4.5.2" />
  25. <httpRuntime targetFramework="4.5.2" maxRequestLength="1048576" executionTimeout="3600" />
  26. <pages buffer="true" enableViewState="false" />
  27. </system.web>
  28. <system.webServer>
  29. <modules>
  30. <remove name="FormsAuthentication" />
  31. <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
  32. <add name="PerfModule" type="Teknik.Modules.PerformanceMonitorModule, Teknik" />
  33. <remove name="UrlRoutingModule-4.0" />
  34. <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
  35. </modules>
  36. <staticContent>
  37. <mimeMap fileExtension="woff" mimeType="application/font-woff" />
  38. <mimeMap fileExtension="woff2" mimeType="application/font-woff" />
  39. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  40. </staticContent>
  41. <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
  42. <security>
  43. <requestFiltering>
  44. <requestLimits maxAllowedContentLength="1073741824" />
  45. </requestFiltering>
  46. </security>
  47. <httpProtocol>
  48. <customHeaders>
  49. <add name="Access-Control-Allow-Credentials" value="true" />
  50. <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, OPTIONS" />
  51. <add name="Access-Control-Allow-Headers" value="Accept, Content-Type" />
  52. <add name="strict-transport-security" value="max-age=31536000; includeSubdomains" />
  53. </customHeaders>
  54. </httpProtocol>
  55. <httpErrors errorMode="Detailed" />
  56. </system.webServer>
  57. <runtime>
  58. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  59. <dependentAssembly>
  60. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  61. <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
  62. </dependentAssembly>
  63. <dependentAssembly>
  64. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  65. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  66. </dependentAssembly>
  67. <dependentAssembly>
  68. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  69. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  70. </dependentAssembly>
  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.Mvc" publicKeyToken="31bf3856ad364e35" />
  77. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  78. </dependentAssembly>
  79. <dependentAssembly>
  80. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  81. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  82. </dependentAssembly>
  83. <dependentAssembly>
  84. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  85. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  86. </dependentAssembly>
  87. </assemblyBinding>
  88. </runtime>
  89. <entityFramework>
  90. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  91. <parameters>
  92. <parameter value="mssqllocaldb" />
  93. </parameters>
  94. </defaultConnectionFactory>
  95. <providers>
  96. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  97. </providers>
  98. </entityFramework>
  99. <system.data>
  100. <DbProviderFactories>
  101. <remove invariant="MySql.Data.MySqlClient" />
  102. <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  103. </DbProviderFactories>
  104. </system.data>
  105. </configuration>