Skip to content

Instantly share code, notes, and snippets.

@definitelynotsoftware
Last active September 18, 2017 18:53
Show Gist options
  • Save definitelynotsoftware/cf6bc63fd06612018c3bf7028b2c1b8a to your computer and use it in GitHub Desktop.
Save definitelynotsoftware/cf6bc63fd06612018c3bf7028b2c1b8a to your computer and use it in GitHub Desktop.
Bonobo Git Server - Windows Auth
<!-- Bonobo Git Server Interface -->
<appSettings>
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="UserConfiguration" value="C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\config.xml" />
<add key="DefaultRepositoriesDirectory" value="C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Repositories" />
<add key="GitPath" value="C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Git\git.exe" />
<add key="GitServerPath" value="http://%servername%/Bonobo.Git.Server.Interface/" />
<add key="ShouldImportWindowsUserAsAdministrator" value="true" />
<add key="AuthenticationProvider" value="Windows" />
<add key="ImportWindowsAuthUsersAsAdmin" value="false" />
<add key="MembershipService" value="ActiveDirectory" />
<add key="ActiveDirectoryDefaultDomain" value="schott.org" />
<add key="ActiveDirectoryBackendPath" value="C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\ADBackend" />
<add key="ActiveDirectoryMemberGroupName" value="gitGroup" />
<add key="ActiveDirectoryTeamMapping" value="Developers=gitGroup" />
<add key="ActiveDirectoryRoleMapping" value="Administrator=gitAdminGroup" />
</appSettings>
<connectionStrings>
<add name="BonoboGitServerContext" connectionString="BinaryGUID=false;Data Source=C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Bonobo.Git.Server.db" providerName="System.Data.SQLite" />
</connectionStrings>
<!--
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.5.1" />
</system.Web>
-->
<system.web>
<globalization enableClientBasedCulture="true" uiCulture="auto" />
<customErrors mode="On" defaultRedirect="Home/Error" />
<httpRuntime maxRequestLength="102400" />
<authentication mode="Windows" />
<compilation debug="true" targetFramework="4.6" />
</system.web>
<!-- Bonobo Git Server -->
<appSettings>
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="UserConfiguration" value="~\App_Data\config.xml" />
<add key="DefaultRepositoriesDirectory" value="~\App_Data\Repositories" />
<add key="GitPath" value="~\App_Data\Git\git.exe" />
<add key="ShouldImportWindowsUserAsAdministrator" value="true" />
<add key="AuthenticationProvider" value="Windows" />
<add key="ImportWindowsAuthUsersAsAdmin" value="false" />
<add key="MembershipService" value="ActiveDirectory" />
<add key="ActiveDirectoryDefaultDomain" value="yourdomain" />
<add key="ActiveDirectoryBackendPath" value="~\App_Data\ADBackend" />
<add key="ActiveDirectoryMemberGroupName" value="gitGroup" />
<add key="ActiveDirectoryTeamMapping" value="Developers=gitGroup" />
<add key="ActiveDirectoryRoleMapping" value="Administrator=gitAdminGroup" />
</appSettings>
<connectionStrings>
<add name="BonoboGitServerContext" connectionString="Data Source=|DataDirectory|Bonobo.Git.Server.db;BinaryGUID=False;" providerName="System.Data.SQLite" />
</connectionStrings>
<!--
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.5.1" />
</system.Web>
-->
<system.web>
<globalization enableClientBasedCulture="true" uiCulture="auto" />
<customErrors mode="On" defaultRedirect="Home/Error" />
<httpRuntime maxRequestLength="102400" />
<authentication mode="Windows" />
<compilation debug="true" targetFramework="4.6" />
</system.web>
IIS
Bonobo.Git.Server - Basic Auth only
Bonobo.Git.Server.Interface - Anonymous Auth only
Folder Access
App_Data - IUSER modify/write access
The URLs for the Git Repositories will reference Bonobo.Git.Server.Interface, as shown below:
http://%servername%/Bonobo.Git.Server.Interface/%reponame%.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment