The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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" />
  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. </customHeaders>
  53. </httpProtocol>
  54. </system.webServer>
  55. <runtime>
  56. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  57. <dependentAssembly>
  58. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  59. <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
  60. </dependentAssembly>
  61. <dependentAssembly>
  62. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  63. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  64. </dependentAssembly>
  65. <dependentAssembly>
  66. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  67. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  68. </dependentAssembly>
  69. <dependentAssembly>
  70. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  71. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  72. </dependentAssembly>
  73. <dependentAssembly>
  74. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  75. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  76. </dependentAssembly>
  77. <dependentAssembly>
  78. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  79. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  80. </dependentAssembly>
  81. <dependentAssembly>
  82. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  83. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  84. </dependentAssembly>
  85. </assemblyBinding>
  86. </runtime>
  87. <entityFramework>
  88. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  89. <parameters>
  90. <parameter value="mssqllocaldb" />
  91. </parameters>
  92. </defaultConnectionFactory>
  93. <providers>
  94. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  95. </providers>
  96. </entityFramework>
  97. <system.data>
  98. <DbProviderFactories>
  99. <remove invariant="MySql.Data.MySqlClient" />
  100. <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" />
  101. </DbProviderFactories>
  102. </system.data></configuration>