Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

Web.config 4.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <sectionGroup name="elmah">
  9. <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
  10. <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
  11. <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
  12. <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
  13. </sectionGroup>
  14. </configSections>
  15. <system.web>
  16. <compilation debug="true" targetFramework="4.5"/>
  17. <httpRuntime targetFramework="4.5" maxRequestLength="31457280"/>
  18. <httpModules>
  19. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
  20. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
  21. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
  22. </httpModules></system.web>
  23. <system.webServer>
  24. <validation validateIntegratedModeConfiguration="false"/>
  25. <modules runAllManagedModulesForAllRequests="true">
  26. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>
  27. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler"/>
  28. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler"/>
  29. </modules>
  30. <staticContent>
  31. <mimeMap fileExtension=".nupkg" mimeType="application/zip"/>
  32. </staticContent></system.webServer><elmah>
  33. <!--
  34. See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
  35. more information on remote access and securing ELMAH.
  36. -->
  37. <security allowRemoteAccess="false"/>
  38. <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data"/></elmah><location path="elmah.axd" inheritInChildApplications="false">
  39. <system.web>
  40. <httpHandlers>
  41. <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
  42. </httpHandlers>
  43. <!--
  44. See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
  45. more information on using ASP.NET authorization securing ELMAH.
  46. <authorization>
  47. <allow roles="admin"/>
  48. <deny users="*"/>
  49. </authorization>
  50. -->
  51. </system.web>
  52. <system.webServer>
  53. <handlers>
  54. <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/>
  55. </handlers>
  56. </system.webServer>
  57. </location><appSettings>
  58. <!--
  59. Determines if an Api Key is required to push\delete packages from the server.
  60. -->
  61. <add key="requireApiKey" value="true"/>
  62. <!--
  63. Set the value here to allow people to push/delete packages from the server.
  64. NOTE: This is a shared key (password) for all users.
  65. -->
  66. <add key="apiKey" value="Piko4242"/>
  67. <!--
  68. Change the path to the packages folder. Default is ~/Packages.
  69. This can be a virtual or physical path.
  70. -->
  71. <add key="packagesPath" value=""/>
  72. <!--
  73. Set allowOverrideExistingPackageOnPush to false if attempts to upload a package that already exists
  74. (same id and same version) should fail.
  75. -->
  76. <add key="allowOverrideExistingPackageOnPush" value="true"/>
  77. <!--
  78. Set enableDelisting to true to enable delist instead of delete as a result of a "nuget delete" command.
  79. - delete: package is deleted from the repository's local filesystem.
  80. - delist:
  81. - "nuget delete": the "hidden" file attribute of the corresponding nupkg on the repository local filesystem is turned on instead of deleting the file.
  82. - "nuget list" skips delisted packages, i.e. those that have the hidden attribute set on their nupkg.
  83. - "nuget install packageid -version version" command will succeed for both listed and delisted packages.
  84. e.g. delisted packages can still be downloaded by clients that explicitly specify their version.
  85. -->
  86. <add key="enableDelisting" value="false"/>
  87. <!--
  88. Set enableFrameworkFiltering to true to enable filtering packages by their supported frameworks during search.
  89. -->
  90. <add key="enableFrameworkFiltering" value="false"/>
  91. </appSettings><system.serviceModel>
  92. <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  93. </system.serviceModel></configuration>