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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></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" enableVersionHeader="false" />
  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. <add name="UserAuthModule" type="Teknik.Modules.UserAuthModule, Teknik" />
  57. <add name="BlacklistModule" type="Teknik.Modules.BlacklistModule, Teknik" />
  58. <remove name="UrlRoutingModule-4.0" />
  59. <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
  60. </modules>
  61. <staticContent>
  62. <mimeMap fileExtension="woff" mimeType="application/font-woff" />
  63. <mimeMap fileExtension="woff2" mimeType="application/font-woff" />
  64. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" />
  65. </staticContent>
  66. <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
  67. <httpCompression cacheControlHeader="max-age=86400" noCompressionForHttp10="false" noCompressionForProxies="false" sendCacheHeaders="true" />
  68. <security>
  69. <requestFiltering>
  70. <requestLimits maxAllowedContentLength="1073741824" />
  71. <hiddenSegments>
  72. <remove segment="App_Browsers" />
  73. <remove segment="App_Data" />
  74. <remove segment="App_WebReferences" />
  75. <remove segment="App_LocalResources" />
  76. <remove segment="App_GlobalResources" />
  77. <remove segment="App_code" />
  78. <remove segment="bin" />
  79. <remove segment="web.config" />
  80. </hiddenSegments>
  81. <fileExtensions>
  82. <remove fileExtension=".webinfo" />
  83. <remove fileExtension=".vsdisco" />
  84. <remove fileExtension=".vjsproj" />
  85. <remove fileExtension=".vbproj" />
  86. <remove fileExtension=".vb" />
  87. <remove fileExtension=".ssmap" />
  88. <remove fileExtension=".ssdgm" />
  89. <remove fileExtension=".skin" />
  90. <remove fileExtension=".sitemap" />
  91. <remove fileExtension=".sdmDocument" />
  92. <remove fileExtension=".sdm" />
  93. <remove fileExtension=".sd" />
  94. <remove fileExtension=".rules" />
  95. <remove fileExtension=".resx" />
  96. <remove fileExtension=".resources" />
  97. <remove fileExtension=".refresh" />
  98. <remove fileExtension=".msgx" />
  99. <remove fileExtension=".mdf" />
  100. <remove fileExtension=".mdb" />
  101. <remove fileExtension=".master" />
  102. <remove fileExtension=".lsaprototype" />
  103. <remove fileExtension=".lsad" />
  104. <remove fileExtension=".licx" />
  105. <remove fileExtension=".ldf" />
  106. <remove fileExtension=".lddprototype" />
  107. <remove fileExtension=".ldd" />
  108. <remove fileExtension=".ldb" />
  109. <remove fileExtension=".jsl" />
  110. <remove fileExtension=".java" />
  111. <remove fileExtension=".exclude" />
  112. <remove fileExtension=".dsprototype" />
  113. <remove fileExtension=".dsdgm" />
  114. <remove fileExtension=".dd" />
  115. <remove fileExtension=".csproj" />
  116. <remove fileExtension=".cs" />
  117. <remove fileExtension=".config" />
  118. <remove fileExtension=".compiled" />
  119. <remove fileExtension=".cd" />
  120. <remove fileExtension=".browser" />
  121. <remove fileExtension=".ascx" />
  122. <remove fileExtension=".asax" />
  123. <remove fileExtension=".asa" />
  124. <remove fileExtension=".adprototype" />
  125. <remove fileExtension=".ad" />
  126. </fileExtensions>
  127. </requestFiltering>
  128. </security>
  129. <httpProtocol>
  130. <customHeaders>
  131. <add name="Access-Control-Allow-Credentials" value="true" />
  132. <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, OPTIONS" />
  133. <add name="Access-Control-Allow-Headers" value="Authorization, Accept, Origin, Content-Type, X-Requested-With, Connection, Transfer-Encoding" />
  134. <add name="strict-transport-security" value="max-age=31536000; includeSubdomains; preload" />
  135. <add name="X-XSS-Protection" value="1; mode=block" />
  136. <add name="Vary" value="Origin" />
  137. </customHeaders>
  138. </httpProtocol>
  139. <httpErrors errorMode="Detailed" />
  140. </system.webServer>
  141. <runtime>
  142. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  143. <dependentAssembly>
  144. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  145. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  146. </dependentAssembly>
  147. <dependentAssembly>
  148. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  149. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  150. </dependentAssembly>
  151. <dependentAssembly>
  152. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  153. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  154. </dependentAssembly>
  155. <dependentAssembly>
  156. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  157. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  158. </dependentAssembly>
  159. <dependentAssembly>
  160. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  161. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  162. </dependentAssembly>
  163. <dependentAssembly>
  164. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  165. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  166. </dependentAssembly>
  167. <dependentAssembly>
  168. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  169. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  170. </dependentAssembly>
  171. <dependentAssembly>
  172. <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  173. <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
  174. </dependentAssembly>
  175. <dependentAssembly>
  176. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  177. <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
  178. </dependentAssembly>
  179. </assemblyBinding>
  180. </runtime>
  181. <entityFramework>
  182. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  183. <parameters>
  184. <parameter value="mssqllocaldb" />
  185. </parameters>
  186. </defaultConnectionFactory>
  187. <providers>
  188. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  189. </providers>
  190. </entityFramework>
  191. <system.data>
  192. <DbProviderFactories>
  193. <remove invariant="MySql.Data.MySqlClient" />
  194. <add description=".Net Framework Data Provider for MySQL" invariant="MySql.Data.MySqlClient" name="MySQL Data Provider" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.10.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  195. </DbProviderFactories>
  196. </system.data>
  197. <system.codedom>
  198. <compilers>
  199. <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
  200. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  201. </compilers>
  202. </system.codedom>
  203. </configuration>