Web.config 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Pour plus d’informations sur la configuration de votre application ASP.NET, consultez la page
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  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. <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core" />
  10. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  11. <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  12. <section name="CD67.FicheCollege.MVC.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  13. </sectionGroup>
  14. </configSections>
  15. <connectionStrings>
  16. <add name="Entities" connectionString="metadata=res://*/EntityModel.csdl|res://*/EntityModel.ssdl|res://*/EntityModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=T-MSSQL-02\SQLSTD2K14;initial catalog=FicheCollege;persist security info=True;user id=FicheCollege_admin;password=bk9JFwqSwYw7mEPiOhnu;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  17. <add name="EducfEntities" providerName="Npgsql" connectionString="Server=POSTGIS-01;User Id=usereducfro;Password=usereducfR0;Port=5432;Database=educf;" />
  18. </connectionStrings>
  19. <appSettings>
  20. <add key="webpages:Version" value="2.0.0.0" />
  21. <add key="webpages:Enabled" value="false" />
  22. <add key="PreserveLoginUrl" value="true" />
  23. <add key="ClientValidationEnabled" value="true" />
  24. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  25. <add key="SolrUrl" value="http://t-lunr4:8080/solr/modele-mvc" />
  26. <add key="facette_fields" value="type_libelle casque_cornu annee_creation" />
  27. <add key="facette_mincount" value="1" />
  28. <add key="facette_ranges" value="facet.range=nb_victoires&amp;f.nb_victoires.facet.range.start=0&amp;f.nb_victoires.facet.range.end=100000&amp;f.nb_victoires.facet.range.gap=20" />
  29. <add key="trierPar" value="date_edition+desc" />
  30. <add key="resultatParPage" value="12" />
  31. </appSettings>
  32. <!--
  33. Pour obtenir une description des modifications de web.config, voir http://go.microsoft.com/fwlink/?LinkId=235367.
  34. Les attributs suivants peuvent être définis dans la balise <httpRuntime>.
  35. <system.Web>
  36. <httpRuntime targetFramework="4.6.1" />
  37. </system.Web>
  38. -->
  39. <system.web>
  40. <globalization uiCulture="fr" culture="fr-FR" />
  41. <siteMap defaultProvider="MvcSiteMapProvider">
  42. <providers>
  43. <clear />
  44. <add name="MvcSiteMapProvider" type="MvcSiteMapProvider.DefaultSiteMapProvider, MvcSiteMapProvider" siteMapFile="~/Mvc.Sitemap" />
  45. </providers>
  46. </siteMap>
  47. <httpRuntime targetFramework="4.5.1" />
  48. <compilation debug="true" targetFramework="4.6.1" />
  49. <pages>
  50. <namespaces>
  51. <add namespace="System.Web.Helpers" />
  52. <add namespace="System.Web.Mvc" />
  53. <add namespace="System.Web.Mvc.Ajax" />
  54. <add namespace="System.Web.Mvc.Html" />
  55. <add namespace="System.Web.Routing" />
  56. <add namespace="System.Web.WebPages" />
  57. </namespaces>
  58. </pages>
  59. <httpHandlers>
  60. <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
  61. </httpHandlers>
  62. </system.web>
  63. <system.webServer>
  64. <staticContent>
  65. <clientCache cacheControlMode="UseMaxAge" cacheControlCustom="public" cacheControlMaxAge="0.00:00:00" />
  66. <remove fileExtension=".lang" />
  67. <mimeMap fileExtension=".lang" mimeType="application/json" />
  68. </staticContent>
  69. <validation validateIntegratedModeConfiguration="false" />
  70. <handlers>
  71. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  72. <remove name="OPTIONSVerbHandler" />
  73. <remove name="TRACEVerbHandler" />
  74. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  75. <add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" />
  76. </handlers>
  77. </system.webServer>
  78. <system.data>
  79. <DbProviderFactories>
  80. <add name="Npgsql Data Provider" invariant="Npgsql" description="Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql" />
  81. <add name="dotConnect for PostgreSQL" invariant="Devart.Data.PostgreSql" description="Devart dotConnect for PostgreSQL" type="Devart.Data.PostgreSql.PgSqlProviderFactory, Devart.Data.PostgreSql, Version= 7.10.1134.0, Culture=neutral, PublicKeyToken=09af7300eec23701" /></DbProviderFactories>
  82. </system.data>
  83. <entityFramework>
  84. <!-- Suppression du provider par défaut qui stipule SQL server
  85. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  86. -->
  87. <providers>
  88. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  89. <provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql" />
  90. </providers>
  91. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  92. <parameters>
  93. <parameter value="mssqllocaldb" />
  94. </parameters>
  95. </defaultConnectionFactory>
  96. </entityFramework>
  97. <runtime>
  98. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  99. <dependentAssembly>
  100. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  101. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  102. </dependentAssembly>
  103. <dependentAssembly>
  104. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  105. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  106. </dependentAssembly>
  107. <dependentAssembly>
  108. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  109. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  110. </dependentAssembly>
  111. <dependentAssembly>
  112. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  113. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  114. </dependentAssembly>
  115. <dependentAssembly>
  116. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  117. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  118. </dependentAssembly>
  119. <dependentAssembly>
  120. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  121. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  122. </dependentAssembly>
  123. <dependentAssembly>
  124. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  125. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  126. </dependentAssembly>
  127. <dependentAssembly>
  128. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  129. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  130. </dependentAssembly>
  131. <dependentAssembly>
  132. <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
  133. <bindingRedirect oldVersion="0.0.0.0-3.2.7.0" newVersion="3.2.7.0" />
  134. </dependentAssembly>
  135. </assemblyBinding>
  136. </runtime>
  137. <dotless minifyCss="false" cache="true" web="false" strictMath="false" />
  138. <applicationSettings>
  139. <CD67.FicheCollege.MVC.Properties.Settings>
  140. <setting name="GetCodesPostaux_URL" serializeAs="String">
  141. <value>http://lunr4:8080/solr/referentiel-communes/select?q=id%3A{0}&amp;fl=code_postal&amp;wt=xml&amp;indent=true&amp;hl=false&amp;omitHeader=true</value>
  142. </setting>
  143. </CD67.FicheCollege.MVC.Properties.Settings>
  144. </applicationSettings>
  145. </configuration>