|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<configuration> |
| 3 | + <!-- |
| 4 | + Define the Web.config template, which is used when creating the initial Web.config, |
| 5 | + and then transforms from web.Template.[Debug|Release].config are applied. |
| 6 | + Documentation for Web.config at: https://our.umbraco.com/documentation/Reference/Config/webconfig/ |
| 7 | + --> |
| 8 | + |
| 9 | + <configSections> |
| 10 | + <section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" requirePermission="false" /> |
| 11 | + |
| 12 | + <sectionGroup name="umbracoConfiguration"> |
| 13 | + <section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" /> |
| 14 | + <section name="HealthChecks" type="Umbraco.Core.Configuration.HealthChecks.HealthChecksSection, Umbraco.Core" requirePermission="false" /> |
| 15 | + </sectionGroup> |
| 16 | + |
| 17 | + <sectionGroup name="imageProcessor"> |
| 18 | + <section name="security" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageSecuritySection, ImageProcessor.Web" /> |
| 19 | + <section name="processing" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageProcessingSection, ImageProcessor.Web" /> |
| 20 | + <section name="caching" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageCacheSection, ImageProcessor.Web" /> |
| 21 | + </sectionGroup> |
| 22 | + </configSections> |
| 23 | + |
| 24 | + <umbracoConfiguration> |
| 25 | + <settings configSource="config\umbracoSettings.config" /> |
| 26 | + <HealthChecks configSource="config\HealthChecks.config" /> |
| 27 | + </umbracoConfiguration> |
| 28 | + |
| 29 | + <clientDependency configSource="config\ClientDependency.config" /> |
| 30 | + |
| 31 | + <appSettings> |
| 32 | + <add key="Umbraco.Core.ConfigurationStatus" value="8.17.0" /> |
| 33 | + <add key="Umbraco.Core.ReservedUrls" value="" /> |
| 34 | + <add key="Umbraco.Core.ReservedPaths" value="" /> |
| 35 | + <add key="Umbraco.Core.Path" value="~/umbraco" /> |
| 36 | + <add key="Umbraco.Core.HideTopLevelNodeFromPath" value="true" /> |
| 37 | + <add key="Umbraco.Core.TimeOutInMinutes" value="20" /> |
| 38 | + <add key="Umbraco.Core.DefaultUILanguage" value="en-US" /> |
| 39 | + <add key="Umbraco.Core.UseHttps" value="false" /> |
| 40 | + |
| 41 | + <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /> |
| 42 | + <add key="webpages:Enabled" value="false" /> |
| 43 | + <add key="enableSimpleMembership" value="false" /> |
| 44 | + <add key="autoFormsAuthentication" value="false" /> |
| 45 | + <add key="dataAnnotations:dataTypeAttribute:disableRegEx" value="false" /> |
| 46 | + |
| 47 | + <add key="owin:appStartup" value="UmbracoDefaultOwinStartup" /> |
| 48 | + |
| 49 | + <add key="Umbraco.ModelsBuilder.Enable" value="true" /> |
| 50 | + <add key="Umbraco.ModelsBuilder.ModelsMode" value="PureLive" /> |
| 51 | + <add key="Umbraco.Core.SqlWriteLockTimeOut" value="10000" /> |
| 52 | + <add key="Umbraco.TestData.Enabled" value="true" /> |
| 53 | + |
| 54 | + </appSettings> |
| 55 | + |
| 56 | + <!-- |
| 57 | + Important: if you're upgrading Umbraco, do not clear the connectionString/providerName during your Web.config merge. |
| 58 | + --> |
| 59 | + <connectionStrings> |
| 60 | + <remove name="umbracoDbDSN" /> |
| 61 | + <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;;default lock timeout=5000;" providerName="System.Data.SqlServerCe.4.0" /> |
| 62 | + </connectionStrings> |
| 63 | + |
| 64 | + |
| 65 | + <system.data> |
| 66 | + <DbProviderFactories> |
| 67 | + <remove invariant="System.Data.SqlServerCe.4.0" /> |
| 68 | + <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" /> |
| 69 | + </DbProviderFactories> |
| 70 | + </system.data> |
| 71 | + |
| 72 | + <system.net> |
| 73 | + <mailSettings> |
| 74 | + <!-- |
| 75 | + If you need Umbraco to send out system mails (like reset password and invite user), |
| 76 | + you must configure your SMTP settings here - for example: |
| 77 | + --> |
| 78 | + <!-- |
| 79 | + |
| 80 | + <network host="localhost" port="25" enableSsl="false" userName="" password="" /> |
| 81 | + </smtp> |
| 82 | + --> |
| 83 | + </mailSettings> |
| 84 | + </system.net> |
| 85 | + |
| 86 | + <system.web> |
| 87 | + <customErrors mode="RemoteOnly" /> |
| 88 | + |
| 89 | + <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> |
| 90 | + |
| 91 | + <httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.7.2" maxRequestLength="51200" fcnMode="Single" /> |
| 92 | + |
| 93 | + <httpModules> |
| 94 | + <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| 95 | + <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,Umbraco.Web" /> |
| 96 | + <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" /> |
| 97 | + <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" /> |
| 98 | + </httpModules> |
| 99 | + |
| 100 | + <httpHandlers> |
| 101 | + <remove verb="*" path="*.asmx" /> |
| 102 | + <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> |
| 103 | + <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> |
| 104 | + <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> |
| 105 | + <add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core " /> |
| 106 | + </httpHandlers> |
| 107 | + |
| 108 | + <compilation defaultLanguage="c#" debug="true" batch="true" targetFramework="4.7.2" numRecompilesBeforeAppRestart="50" /> |
| 109 | + |
| 110 | + <authentication mode="Forms"> |
| 111 | + <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" /> |
| 112 | + </authentication> |
| 113 | + |
| 114 | + <authorization> |
| 115 | + <allow users="?" /> |
| 116 | + </authorization> |
| 117 | + |
| 118 | + <!-- Membership Provider --> |
| 119 | + <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15"> |
| 120 | + <providers> |
| 121 | + <clear /> |
| 122 | + <add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco.Web" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="10" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" allowManuallyChangingPassword="false" /> |
| 123 | + <add name="UsersMembershipProvider" type="Umbraco.Web.Security.Providers.UsersMembershipProvider, Umbraco.Web" /> |
| 124 | + </providers> |
| 125 | + </membership> |
| 126 | + |
| 127 | + <!-- Role Provider --> |
| 128 | + <roleManager enabled="true" defaultProvider="UmbracoRoleProvider"> |
| 129 | + <providers> |
| 130 | + <clear /> |
| 131 | + <add name="UmbracoRoleProvider" type="Umbraco.Web.Security.Providers.MembersRoleProvider" /> |
| 132 | + </providers> |
| 133 | + </roleManager> |
| 134 | + |
| 135 | + </system.web> |
| 136 | + |
| 137 | + <system.webServer> |
| 138 | + <validation validateIntegratedModeConfiguration="false" /> |
| 139 | + |
| 140 | + <modules runAllManagedModulesForAllRequests="true"> |
| 141 | + <remove name="WebDAVModule" /> |
| 142 | + <remove name="UmbracoModule" /> |
| 143 | + <remove name="ScriptModule" /> |
| 144 | + <remove name="ClientDependencyModule" /> |
| 145 | + <remove name="FormsAuthentication" /> |
| 146 | + <remove name="ImageProcessorModule" /> |
| 147 | + |
| 148 | + <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,Umbraco.Web" /> |
| 149 | + <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| 150 | + <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" /> |
| 151 | + <!-- FormsAuthentication is needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) --> |
| 152 | + <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" /> |
| 153 | + <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" /> |
| 154 | + </modules> |
| 155 | + |
| 156 | + <handlers accessPolicy="Read, Write, Script, Execute"> |
| 157 | + <remove name="WebServiceHandlerFactory-Integrated" /> |
| 158 | + <remove name="ScriptHandlerFactory" /> |
| 159 | + <remove name="ScriptHandlerFactoryAppServices" /> |
| 160 | + <remove name="ScriptResource" /> |
| 161 | + <remove name="ClientDependency" /> |
| 162 | + <remove name="MiniProfiler" /> |
| 163 | + <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> |
| 164 | + <remove name="OPTIONSVerbHandler" /> |
| 165 | + <remove name="TRACEVerbHandler" /> |
| 166 | + |
| 167 | + <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| 168 | + <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| 169 | + <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| 170 | + <add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core" /> |
| 171 | + <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> |
| 172 | + <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> |
| 173 | + </handlers> |
| 174 | + |
| 175 | + <staticContent> |
| 176 | + <remove fileExtension=".air" /> |
| 177 | + <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" /> |
| 178 | + <remove fileExtension=".svg" /> |
| 179 | + <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> |
| 180 | + <remove fileExtension=".woff" /> |
| 181 | + <mimeMap fileExtension=".woff" mimeType="font/woff" /> |
| 182 | + <remove fileExtension=".woff2" /> |
| 183 | + <mimeMap fileExtension=".woff2" mimeType="font/woff2" /> |
| 184 | + <remove fileExtension=".less" /> |
| 185 | + <mimeMap fileExtension=".less" mimeType="text/css" /> |
| 186 | + <remove fileExtension=".mp4" /> |
| 187 | + <mimeMap fileExtension=".mp4" mimeType="video/mp4" /> |
| 188 | + <remove fileExtension=".json" /> |
| 189 | + <mimeMap fileExtension=".json" mimeType="application/json" /> |
| 190 | + </staticContent> |
| 191 | + |
| 192 | + <!-- Ensure the powered by header is not returned --> |
| 193 | + <httpProtocol> |
| 194 | + <customHeaders> |
| 195 | + <remove name="X-Powered-By" /> |
| 196 | + </customHeaders> |
| 197 | + </httpProtocol> |
| 198 | + |
| 199 | + <!-- Increase the default upload file size limit --> |
| 200 | + <security> |
| 201 | + <requestFiltering> |
| 202 | + <requestLimits maxAllowedContentLength="52428800" /> |
| 203 | + </requestFiltering> |
| 204 | + </security> |
| 205 | + |
| 206 | + <!-- |
| 207 | + If you wish to use IIS rewrite rules, see the documentation here: https://our.umbraco.com/documentation/Reference/Routing/IISRewriteRules |
| 208 | + --> |
| 209 | + <!-- |
| 210 | + <rewrite> |
| 211 | + <rules></rules> |
| 212 | + </rewrite> |
| 213 | + --> |
| 214 | + </system.webServer> |
| 215 | + |
| 216 | + <runtime> |
| 217 | + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| 218 | + <dependentAssembly> |
| 219 | + <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> |
| 220 | + <bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" /> |
| 221 | + </dependentAssembly> |
| 222 | + <dependentAssembly> |
| 223 | + <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
| 224 | + <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> |
| 225 | + </dependentAssembly> |
| 226 | + <dependentAssembly> |
| 227 | + <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" /> |
| 228 | + <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" /> |
| 229 | + </dependentAssembly> |
| 230 | + <dependentAssembly> |
| 231 | + <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" /> |
| 232 | + <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> |
| 233 | + </dependentAssembly> |
| 234 | + <dependentAssembly> |
| 235 | + <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" /> |
| 236 | + <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> |
| 237 | + </dependentAssembly> |
| 238 | + <dependentAssembly> |
| 239 | + <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" /> |
| 240 | + <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> |
| 241 | + </dependentAssembly> |
| 242 | + <dependentAssembly> |
| 243 | + <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" /> |
| 244 | + <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> |
| 245 | + </dependentAssembly> |
| 246 | + <dependentAssembly> |
| 247 | + <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" /> |
| 248 | + <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" /> |
| 249 | + </dependentAssembly> |
| 250 | + <dependentAssembly> |
| 251 | + <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> |
| 252 | + <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" /> |
| 253 | + </dependentAssembly> |
| 254 | + <dependentAssembly> |
| 255 | + <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" /> |
| 256 | + <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" /> |
| 257 | + </dependentAssembly> |
| 258 | + </assemblyBinding> |
| 259 | + </runtime> |
| 260 | + |
| 261 | + <location path="umbraco"> |
| 262 | + <system.webServer> |
| 263 | + <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" /> |
| 264 | + </system.webServer> |
| 265 | + </location> |
| 266 | + <location path="App_Plugins"> |
| 267 | + <system.webServer> |
| 268 | + <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" /> |
| 269 | + </system.webServer> |
| 270 | + </location> |
| 271 | + |
| 272 | + <imageProcessor> |
| 273 | + <security configSource="config\imageprocessor\security.config" /> |
| 274 | + <caching configSource="config\imageprocessor\cache.config" /> |
| 275 | + <processing configSource="config\imageprocessor\processing.config" /> |
| 276 | + </imageProcessor> |
| 277 | + |
| 278 | + <system.codedom> |
| 279 | + <compilers> |
| 280 | + <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:7 /nowarn:1659;1699;1701" /> |
| 281 | + <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" /> |
| 282 | + </compilers> |
| 283 | + </system.codedom> |
| 284 | + |
| 285 | +</configuration> |
0 commit comments