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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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.net>
  33. <settings>
  34. <httpListener>
  35. <timeouts minSendBytesPerSecond="4294967295" />
  36. </httpListener>
  37. </settings>
  38. </system.net>
  39. <system.web>
  40. <machineKey configSource="App_Data\MachineKey.config" />
  41. <!-- Create MachineKey.config and add your machine keys-->
  42. <httpCookies httpOnlyCookies="true" requireSSL="true" />
  43. <customErrors mode="Off" />
  44. <authentication mode="Forms">
  45. <forms domain=".teknik.io" protection="All" enableCrossAppRedirects="true" name="TeknikAuth" />
  46. </authentication>
  47. <compilation debug="true" targetFramework="4.6.2" />
  48. <httpRuntime targetFramework="4.6.2" maxRequestLength="5242880" executionTimeout="3600" relaxedUrlToFileSystemMapping="true" />
  49. <pages buffer="true" enableViewState="false" />
  50. </system.web>
  51. <system.webServer>
  52. <modules runAllManagedModulesForAllRequests="true">
  53. <remove name="FormsAuthentication" />
  54. <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
  55. <add name="PerfModule" type="Teknik.Modules.PerformanceMonitorModule, Teknik" />
  56. <remove name="UrlRoutingModule-4.0" />
  57. <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
  58. </modules>
  59. <staticContent>
  60. <mimeMap fileExtension="woff" mimeType="application/font-woff" />
  61. <mimeMap fileExtension="woff2" mimeType="application/font-woff" />
  62. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  63. </staticContent>
  64. <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
  65. <httpCompression cacheControlHeader="max-age=86400" noCompressionForHttp10="false" noCompressionForProxies="false" sendCacheHeaders="true" />
  66. <security>
  67. <requestFiltering>
  68. <requestLimits maxAllowedContentLength="1073741824" />
  69. <hiddenSegments>
  70. <remove segment="App_Browsers" />
  71. <remove segment="App_Data" />
  72. <remove segment="App_WebReferences" />
  73. <remove segment="App_LocalResources" />
  74. <remove segment="App_GlobalResources" />
  75. <remove segment="App_code" />
  76. <remove segment="bin" />
  77. <remove segment="web.config" />
  78. </hiddenSegments>
  79. <fileExtensions>
  80. <remove fileExtension=".webinfo" />
  81. <remove fileExtension=".vsdisco" />
  82. <remove fileExtension=".vjsproj" />
  83. <remove fileExtension=".vbproj" />
  84. <remove fileExtension=".vb" />
  85. <remove fileExtension=".ssmap" />
  86. <remove fileExtension=".ssdgm" />
  87. <remove fileExtension=".skin" />
  88. <remove fileExtension=".sitemap" />
  89. <remove fileExtension=".sdmDocument" />
  90. <remove fileExtension=".sdm" />
  91. <remove fileExtension=".sd" />
  92. <remove fileExtension=".rules" />
  93. <remove fileExtension=".resx" />
  94. <remove fileExtension=".resources" />
  95. <remove fileExtension=".refresh" />
  96. <remove fileExtension=".msgx" />
  97. <remove fileExtension=".mdf" />
  98. <remove fileExtension=".mdb" />
  99. <remove fileExtension=".master" />
  100. <remove fileExtension=".lsaprototype" />
  101. <remove fileExtension=".lsad" />
  102. <remove fileExtension=".licx" />
  103. <remove fileExtension=".ldf" />
  104. <remove fileExtension=".lddprototype" />
  105. <remove fileExtension=".ldd" />
  106. <remove fileExtension=".ldb" />
  107. <remove fileExtension=".jsl" />
  108. <remove fileExtension=".java" />
  109. <remove fileExtension=".exclude" />
  110. <remove fileExtension=".dsprototype" />
  111. <remove fileExtension=".dsdgm" />
  112. <remove fileExtension=".dd" />
  113. <remove fileExtension=".csproj" />
  114. <remove fileExtension=".cs" />
  115. <remove fileExtension=".config" />
  116. <remove fileExtension=".compiled" />
  117. <remove fileExtension=".cd" />
  118. <remove fileExtension=".browser" />
  119. <remove fileExtension=".ascx" />
  120. <remove fileExtension=".asax" />
  121. <remove fileExtension=".asa" />
  122. <remove fileExtension=".adprototype" />
  123. <remove fileExtension=".ad" />
  124. </fileExtensions>
  125. </requestFiltering>
  126. </security>
  127. <httpProtocol>
  128. <customHeaders>
  129. <add name="Access-Control-Allow-Credentials" value="true" />
  130. <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, OPTIONS" />
  131. <add name="Access-Control-Allow-Headers" value="Authorization, Accept, Origin, Content-Type, X-Requested-With, Connection, Transfer-Encoding" />
  132. <add name="strict-transport-security" value="max-age=31536000; includeSubdomains; preload" />
  133. <add name="X-XSS-Protection" value="1; mode=block" />
  134. </customHeaders>
  135. </httpProtocol>
  136. <httpErrors errorMode="Detailed" />
  137. </system.webServer>
  138. <runtime>
  139. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  140. <dependentAssembly>
  141. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  142. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  143. </dependentAssembly>
  144. <dependentAssembly>
  145. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  146. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  147. </dependentAssembly>
  148. <dependentAssembly>
  149. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  150. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  151. </dependentAssembly>
  152. <dependentAssembly>
  153. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  154. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  155. </dependentAssembly>
  156. <dependentAssembly>
  157. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  158. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  159. </dependentAssembly>
  160. <dependentAssembly>
  161. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  162. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  163. </dependentAssembly>
  164. <dependentAssembly>
  165. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  166. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  167. </dependentAssembly>
  168. <dependentAssembly>
  169. <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  170. <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
  171. </dependentAssembly>
  172. <dependentAssembly>
  173. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  174. <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
  175. </dependentAssembly>
  176. </assemblyBinding>
  177. </runtime>
  178. <entityFramework>
  179. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  180. <parameters>
  181. <parameter value="mssqllocaldb" />
  182. </parameters>
  183. </defaultConnectionFactory>
  184. <providers>
  185. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  186. </providers>
  187. </entityFramework>
  188. <system.data>
  189. <DbProviderFactories>
  190. <remove invariant="MySql.Data.MySqlClient" />
  191. <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" />
  192. </DbProviderFactories>
  193. </system.data>
  194. <system.codedom>
  195. <compilers>
  196. <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
  197. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  198. </compilers>
  199. </system.codedom>
  200. </configuration>