123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <?xml version="1.0" encoding="utf-8"?>
- <!--
- 有关如何配置 ASP.NET 应用程序的详细信息,请访问
- https://go.microsoft.com/fwlink/?LinkId=169433
- -->
- <configuration>
- <!--
- For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
- The following attributes can be set on the <httpRuntime> tag.
- <system.Web>
- <httpRuntime targetFramework="4.6" />
- </system.Web>
- --><system.web>
- <compilation debug="true" targetFramework="4.6" />
- <!-- maxRequestLength is specified in Kb --><httpRuntime targetFramework="4.6" maxRequestLength="30720" />
- </system.web>
- <system.codedom>
- <compilers>
- <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:default /nowarn:1659;1699;1701" />
- <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:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
- </compilers>
- </system.codedom>
- <system.webServer>
- <handlers>
- <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
- <remove name="OPTIONSVerbHandler" />
- <remove name="TRACEVerbHandler" />
- <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
- <remove name="WebDAV" /><!-- Depending on IIS configuration, these may have to be added.
- <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
- <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,PUT,DEBUG" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
- <remove name="OPTIONSVerbHandler" /><remove name="TRACEVerbHandler" />
- <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
- --></handlers>
- <staticContent>
- <mimeMap fileExtension=".nupkg" mimeType="application/zip" />
- </staticContent><modules runAllManagedModulesForAllRequests="true">
- <remove name="WebDAVModule" />
- </modules><security>
- <requestFiltering>
- <!-- maxAllowedContentLength is specified in Bytes -->
- <requestLimits maxAllowedContentLength="31457280" />
- </requestFiltering>
- </security></system.webServer><appSettings>
- <!--
- Determines if an Api Key is required to push\delete packages from the server.
- -->
- <add key="requireApiKey" value="true" />
- <!--
- Set the value here to allow people to push/delete packages from the server.
- NOTE: This is a shared key (password) for all users.
- -->
- <add key="apiKey" value="xyy1230" />
- <!--
- Change the path to the packages folder. Default is ~/Packages.
- This can be a virtual or physical path.
- -->
- <add key="packagesPath" value="" />
- <!--
- Change the name of the internal cache file. Default is machine name (System.Environment.MachineName).
- This is the name of the cache file in the packages folder. No paths allowed.
- -->
- <add key="cacheFileName" value="" />
- <!--
- Set allowOverrideExistingPackageOnPush to false to mimic NuGet.org's behaviour (do not allow overwriting packages with same id + version).
- -->
- <add key="allowOverrideExistingPackageOnPush" value="false" />
- <!--
- Set ignoreSymbolsPackages to true to filter out symbols packages. Since NuGet.Server does not come with a symbol server,
- it makes sense to ignore this type of packages. When enabled, files named `.symbols.nupkg` or packages containing a `/src` folder will be ignored.
-
- If you only push .symbols.nupkg packages, set this to false so that packages can be uploaded.
- -->
- <add key="ignoreSymbolsPackages" value="true" />
- <!--
- Set enableDelisting to true to enable delist instead of delete as a result of a "nuget delete" command.
- - delete: package is deleted from the repository's local filesystem.
- - delist:
- - "nuget delete": the "hidden" file attribute of the corresponding nupkg on the repository local filesystem is turned on instead of deleting the file.
- - "nuget list" skips delisted packages, i.e. those that have the hidden attribute set on their nupkg.
- - "nuget install packageid -version version" command will succeed for both listed and delisted packages.
- e.g. delisted packages can still be downloaded by clients that explicitly specify their version.
- -->
- <add key="enableDelisting" value="false" />
- <!--
- Set enableFrameworkFiltering to true to enable filtering packages by their supported frameworks during search.
- -->
- <add key="enableFrameworkFiltering" value="false" />
- <!--
- When running NuGet.Server in a NAT network, ASP.NET may embed the server's internal IP address in the V2 feed.
- Uncomment the following configuration entry to enable NAT support.
- -->
- <!-- <add key="aspnet:UseHostHeaderForRequestUrl" value="true" /> -->
-
- <!--
- Set enableFileSystemMonitoring to true (default) to enable file system monitoring (which will update the package cache appropriately on file system changes).
- Set it to false to disable file system monitoring.
- NOTE: Disabling file system monitoring may result in increased storage capacity requirements as package cache may only be purged by a background job running
- on a fixed 1-hour interval.
- -->
- <add key="enableFileSystemMonitoring" value="true" />
-
- <!--
- Set allowRemoteCacheManagement to true to enable the "clear cache" and other cache operations initiated via requests originating from remote hosts.
- -->
- <add key="allowRemoteCacheManagement" value="false" />
-
- <!--
- Set initialCacheRebuildAfterSeconds to the number of seconds to wait before starting the cache rebuild timer.
- Defaults to 15 seconds if excluded or an invalid value.
- -->
- <add key="initialCacheRebuildAfterSeconds" value="15" />
- <!--
- Set cacheRebuildFrequencyInMinutes to the frequency in minutes to rebuild the cache. Defaults to 60 minutes if
- excluded or an invalid value.
- -->
- <add key="cacheRebuildFrequencyInMinutes" value="60" />
- </appSettings><system.serviceModel>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
- </system.serviceModel><runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.8.4.0" newVersion="5.8.4.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime></configuration>
|