|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
| 1 | +<?xml version="1.0"?> |
2 | 2 | <!-- |
3 | 3 | For more information on how to configure your ASP.NET application, please visit |
4 | 4 | http://go.microsoft.com/fwlink/?LinkId=169433 |
|
8 | 8 | <!-- |
9 | 9 | Determines if an Api Key is required to push\delete packages from the server. |
10 | 10 | --> |
11 | | - <add key="requireApiKey" value="true" /> |
12 | | - |
| 11 | + <add key="requireApiKey" value="true"/> |
13 | 12 | <!-- |
14 | 13 | Set the value here to allow people to push/delete packages from the server. |
15 | 14 | NOTE: This is a shared key (password) for all users. |
16 | 15 | --> |
17 | | - <add key="apiKey" value="" /> |
18 | | - |
| 16 | + <add key="apiKey" value=""/> |
19 | 17 | <!-- |
20 | 18 | Change the path to the packages folder. Default is ~/Packages. |
21 | 19 | This can be a virtual or physical path. |
22 | 20 | --> |
23 | | - <add key="packagesPath" value="" /> |
24 | | - |
| 21 | + <add key="packagesPath" value=""/> |
25 | 22 | <!-- |
26 | 23 | Set allowOverrideExistingPackageOnPush to false to mimic NuGet.org's behaviour (do not allow overwriting packages with same id + version). |
27 | 24 | --> |
28 | | - <add key="allowOverrideExistingPackageOnPush" value="false" /> |
29 | | - |
| 25 | + <add key="allowOverrideExistingPackageOnPush" value="false"/> |
30 | 26 | <!-- |
31 | 27 | Set ignoreSymbolsPackages to true to filter out symbols packages. Since NuGet.Server does not come with a symbol server, |
32 | 28 | it makes sense to ignore this type of packages. When enabled, files named `.symbols.nupkg` or packages containing a `/src` folder will be ignored. |
33 | 29 | |
34 | 30 | If you only push .symbols.nupkg packages, set this to false so that packages can be uploaded. |
35 | 31 | --> |
36 | | - <add key="ignoreSymbolsPackages" value="true" /> |
37 | | - |
| 32 | + <add key="ignoreSymbolsPackages" value="true"/> |
38 | 33 | <!-- |
39 | 34 | Set enableDelisting to true to enable delist instead of delete as a result of a "nuget delete" command. |
40 | 35 | - delete: package is deleted from the repository's local filesystem. |
|
44 | 39 | - "nuget install packageid -version version" command will succeed for both listed and delisted packages. |
45 | 40 | e.g. delisted packages can still be downloaded by clients that explicitly specify their version. |
46 | 41 | --> |
47 | | - <add key="enableDelisting" value="false" /> |
48 | | - |
| 42 | + <add key="enableDelisting" value="false"/> |
49 | 43 | <!-- |
50 | 44 | Set enableFrameworkFiltering to true to enable filtering packages by their supported frameworks during search. |
51 | 45 | --> |
52 | | - <add key="enableFrameworkFiltering" value="false" /> |
53 | | - |
| 46 | + <add key="enableFrameworkFiltering" value="false"/> |
54 | 47 | <!-- |
55 | 48 | When running NuGet.Server in a NAT network, ASP.NET may embed the erver's internal IP address in the V2 feed. |
56 | 49 | Uncomment the following configuration entry to enable NAT support. |
57 | 50 | --> |
58 | 51 | <!-- <add key="aspnet:UseHostHeaderForRequestUrl" value="true" /> --> |
59 | 52 | </appSettings> |
| 53 | + <!-- |
| 54 | + For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367. |
| 55 | +
|
| 56 | + The following attributes can be set on the <httpRuntime> tag. |
| 57 | + <system.Web> |
| 58 | + <httpRuntime targetFramework="4.6" /> |
| 59 | + </system.Web> |
| 60 | + --> |
60 | 61 | <system.web> |
61 | | - <httpRuntime maxRequestLength="31457280" /> |
62 | | - <compilation debug="true" /> |
| 62 | + <httpRuntime maxRequestLength="31457280"/> |
| 63 | + <compilation debug="true" targetFramework="4.6"/> |
63 | 64 | </system.web> |
64 | 65 | <system.serviceModel> |
65 | | - <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> |
| 66 | + <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> |
66 | 67 | </system.serviceModel> |
67 | 68 | <system.webServer> |
68 | 69 | <staticContent> |
69 | | - <mimeMap fileExtension=".nupkg" mimeType="application/zip" /> |
| 70 | + <mimeMap fileExtension=".nupkg" mimeType="application/zip"/> |
70 | 71 | </staticContent> |
71 | 72 | <modules runAllManagedModulesForAllRequests="true"> |
72 | | - <remove name="WebDAVModule" /> |
| 73 | + <remove name="WebDAVModule"/> |
73 | 74 | </modules> |
74 | 75 | <handlers> |
75 | | - <remove name="WebDAV" /> |
76 | | - |
77 | | - <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> |
78 | | - <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,PUT,DEBUG" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> |
| 76 | + <remove name="WebDAV"/> |
| 77 | + <remove name="ExtensionlessUrlHandler-Integrated-4.0"/> |
| 78 | + <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,PUT,DEBUG" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/> |
79 | 79 | </handlers> |
80 | 80 | <security> |
81 | 81 | <requestFiltering> |
82 | | - <requestLimits maxAllowedContentLength="31457280" /> |
| 82 | + <requestLimits maxAllowedContentLength="31457280"/> |
83 | 83 | </requestFiltering> |
84 | 84 | </security> |
85 | 85 | </system.webServer> |
|
0 commit comments