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 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 node-->
  12. <!--
  13. <connectionStrings>
  14. <add name="TeknikEntities"
  15. providerName="System.Data.SqlClient"
  16. connectionString="Data Source=<server name>,<port>\<sql server name>;Initial Catalog=<database>;Integrated Security=False;User Id=<username>;Password=<password>" />
  17. </connectionStrings>
  18. -->
  19. <appSettings>
  20. <add key="webpages:Version" value="3.0.0.0" />
  21. <add key="webpages:Enabled" value="false" />
  22. <add key="ClientValidationEnabled" value="true" />
  23. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  24. </appSettings>
  25. <!--
  26. For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
  27. The following attributes can be set on the <httpRuntime> tag.
  28. <system.Web>
  29. <httpRuntime targetFramework="4.6.2" />
  30. </system.Web>
  31. -->
  32. <system.web>
  33. <machineKey configSource="App_Data\MachineKey.config" />
  34. <!-- Create MachineKey.config and add your machine keys-->
  35. <httpCookies httpOnlyCookies="true" requireSSL="true" />
  36. <customErrors mode="Off" />
  37. <authentication mode="Forms">
  38. <forms domain=".teknik.io" protection="All" enableCrossAppRedirects="true" name="TeknikAuth" />
  39. </authentication>
  40. <compilation debug="true" targetFramework="4.6.2" />
  41. <httpRuntime targetFramework="4.5.2" maxRequestLength="1048576" executionTimeout="3600" relaxedUrlToFileSystemMapping="true" />
  42. <pages buffer="true" enableViewState="false" />
  43. </system.web>
  44. <system.webServer>
  45. <modules runAllManagedModulesForAllRequests="true">
  46. <remove name="FormsAuthentication" />
  47. <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
  48. <add name="PerfModule" type="Teknik.Modules.PerformanceMonitorModule, Teknik" />
  49. <remove name="UrlRoutingModule-4.0" />
  50. <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
  51. </modules>
  52. <staticContent>
  53. <mimeMap fileExtension="woff" mimeType="application/font-woff" />
  54. <mimeMap fileExtension="woff2" mimeType="application/font-woff" />
  55. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  56. </staticContent>
  57. <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
  58. <httpCompression cacheControlHeader="max-age=86400" noCompressionForHttp10="false" noCompressionForProxies="false" sendCacheHeaders="true" />
  59. <security>
  60. <requestFiltering>
  61. <requestLimits maxAllowedContentLength="1073741824" />
  62. </requestFiltering>
  63. </security>
  64. <httpProtocol>
  65. <customHeaders>
  66. <add name="Access-Control-Allow-Credentials" value="true" />
  67. <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, OPTIONS" />
  68. <add name="Access-Control-Allow-Headers" value="Accept, Origin, Content-Type, X-Requested-With" />
  69. <add name="strict-transport-security" value="max-age=31536000; includeSubdomains" />
  70. </customHeaders>
  71. </httpProtocol>
  72. <httpErrors errorMode="Detailed" />
  73. </system.webServer>
  74. <runtime>
  75. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  76. <dependentAssembly>
  77. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  78. <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
  79. </dependentAssembly>
  80. <dependentAssembly>
  81. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  82. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  83. </dependentAssembly>
  84. <dependentAssembly>
  85. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  86. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  87. </dependentAssembly>
  88. <dependentAssembly>
  89. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  90. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  91. </dependentAssembly>
  92. <dependentAssembly>
  93. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  94. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  95. </dependentAssembly>
  96. <dependentAssembly>
  97. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  98. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  99. </dependentAssembly>
  100. <dependentAssembly>
  101. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  102. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  103. </dependentAssembly>
  104. </assemblyBinding>
  105. </runtime>
  106. <entityFramework>
  107. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  108. <parameters>
  109. <parameter value="mssqllocaldb" />
  110. </parameters>
  111. </defaultConnectionFactory>
  112. <providers>
  113. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  114. </providers>
  115. </entityFramework>
  116. <system.data>
  117. <DbProviderFactories>
  118. <remove invariant="MySql.Data.MySqlClient" />
  119. <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.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  120. </DbProviderFactories>
  121. </system.data>
  122. </configuration>