forked from chocolatey-community/puppet-chocolatey_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolatey-communityGH-9) Add support to customize chocolatey server
Add parameters to allow modification of the default chocolatey server config such as the API key and the ability to overwrite existing packages. Update readme
- Loading branch information
1 parent
c6b8b39
commit 5a5960d
Showing
5 changed files
with
144 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<%- | Boolean $allowOverrideExistingPackageOnPush, String $apiKey, Boolean $requireApiKey | -%> | ||
<?xml version="1.0"?> | ||
<!-- | ||
For more information on how to configure your ASP.NET application, please visit | ||
http://go.microsoft.com/fwlink/?LinkId=169433 | ||
--> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="elmah"> | ||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> | ||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/> | ||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/> | ||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/> | ||
</sectionGroup> | ||
</configSections> | ||
<system.web> | ||
<compilation debug="false" targetFramework="4.0"/> | ||
<httpModules> | ||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/> | ||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/> | ||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/> | ||
</httpModules> | ||
<httpRuntime maxRequestLength="31457280"/> | ||
</system.web> | ||
<system.webServer> | ||
<validation validateIntegratedModeConfiguration="false"/> | ||
<modules runAllManagedModulesForAllRequests="true"> | ||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/> | ||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler"/> | ||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler"/> | ||
</modules> | ||
<staticContent> | ||
<mimeMap fileExtension=".nupkg" mimeType="application/zip"/> | ||
</staticContent> | ||
</system.webServer> | ||
<elmah> | ||
<!-- | ||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for | ||
more information on remote access and securing ELMAH. | ||
--> | ||
<security allowRemoteAccess="false"/> | ||
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data/Logs"/> | ||
</elmah> | ||
<location path="elmah.axd" inheritInChildApplications="false"> | ||
<system.web> | ||
<httpHandlers> | ||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/> | ||
</httpHandlers> | ||
<!-- | ||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for | ||
more information on using ASP.NET authorization securing ELMAH. | ||
<authorization> | ||
<allow roles="admin" /> | ||
<deny users="*" /> | ||
</authorization> | ||
--> | ||
</system.web> | ||
<system.webServer> | ||
<handlers> | ||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/> | ||
</handlers> | ||
</system.webServer> | ||
</location> | ||
<appSettings> | ||
<!-- | ||
Determines if an Api Key is required to push\delete packages from the server. | ||
--> | ||
<add key="requireApiKey" value="<%= $requireApiKey %>"/> | ||
<!-- | ||
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="<%= $apiKey %>"/> | ||
<!-- | ||
Change the path to the packages folder. Default is ~/Packages. | ||
This can be a virtual or physical path. | ||
--> | ||
<add key="packagesPath" value="~/App_Data/Packages"/> | ||
<!-- | ||
Set allowOverrideExistingPackageOnPush to false if attempts to upload a package that already exists | ||
(same id and same version) should fail. | ||
--> | ||
<add key="allowOverrideExistingPackageOnPush" value="<%= $allowOverrideExistingPackageOnPush %>"/> | ||
<!-- | ||
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="true"/> | ||
<!-- | ||
Set enableFrameworkFiltering to true to enable filtering packages by their supported frameworks during search. | ||
--> | ||
<add key="enableFrameworkFiltering" value="false"/> | ||
</appSettings> | ||
<system.serviceModel> | ||
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> | ||
</system.serviceModel> | ||
</configuration> |