5 years agoExcessive white-space
Christian Johansen [Wed, 10 Oct 2012 10:30:22 +0000 (12:30 +0200)]
Excessive white-space

5 years agoExplictily provide which mainlines and clones to serialize as XML
Christian Johansen [Wed, 10 Oct 2012 09:27:32 +0000 (11:27 +0200)]
Explictily provide which mainlines and clones to serialize as XML

5 years agoFix issue #125: empty list of target branches
Marius Mathiesen [Tue, 9 Oct 2012 09:20:18 +0000 (11:20 +0200)]
Fix issue #125: empty list of target branches

While introducing support for private repositories, the list of target
branches in a repository was filtered; Grit::Head objects do not
support (and should not support) access control. Access control should
be done on a higher level (repository).

5 years agoSupport access granted on a user level when using LDAP features/ldap_authorization
Marius Mathiesen [Mon, 8 Oct 2012 10:33:26 +0000 (12:33 +0200)]
Support access granted on a user level when using LDAP

Until this commit, a user with permissions granted to the user himself
would not be allowed to:

- resolve merge requests
- administer a repository

Furthermore, while reviewing Merge Request 217, the following issues
arose, which are resolved here:

- the script/ldap_authorization.rb script is not really useful
- explain what @authorizer is in [ldap_]group_authorization.

5 years agoFix incorrect merge of MergeRequestsController
Marius Mathiesen [Mon, 8 Oct 2012 08:36:46 +0000 (10:36 +0200)]
Fix incorrect merge of MergeRequestsController

The event should be created *before* the rest of the logic

5 years agoAvoid a validation error in Repository#destroy
Marius Mathiesen [Wed, 26 Sep 2012 11:19:33 +0000 (13:19 +0200)]
Avoid a validation error in Repository#destroy

ActiveRecord would throw a validation error when creating(!) the
tracking repository for a repository while sending branch deletion
notifications from merge request versions while removing a repository.

Ensuring that all merge requests are removed before removing a
repository and reloading the repository resolves this error, and makes
it possible to destroy repositories.

This commit would be considered pragmatic.

5 years agoFix a typo causing Team#by_admin to fail with classic Groups
Marius Mathiesen [Mon, 24 Sep 2012 11:31:05 +0000 (13:31 +0200)]
Fix a typo causing Team#by_admin to fail with classic Groups

The parameters to Team.by_admin had been swapped, causing an empty
list to be returned. This would cause things like transferring
ownership to a group to be impossible.

5 years agoDeliver email notifications to merge request reviewers on MR creation
Marius Mathiesen [Wed, 19 Sep 2012 09:13:53 +0000 (11:13 +0200)]
Deliver email notifications to merge request reviewers on MR creation

By adding new merge requests to the reviewers' favorites before
creating the creation event, the inner workings of Event will have
notifications delivered by email for target repository reviewers.

5 years agoSupport caching of LDAP group member lookups
Marius Mathiesen [Wed, 19 Sep 2012 08:26:40 +0000 (10:26 +0200)]
Support caching of LDAP group member lookups

A cache expiry can be defined in authentication.yml to have Gitorious
cache the usernames which are members of a group.

5 years agoBuild a synthetic email in auto registration of users from LDAP if none found
Marius Mathiesen [Wed, 19 Sep 2012 07:04:17 +0000 (09:04 +0200)]
Build a synthetic email in auto registration of users from LDAP if none found

Auto registration of user accounts would fail if no email address is
found in LDAP. We will now construct a synthetic address in these
cases, to ensure users are able to log in.

It would make sense for such users to add a valid email address afterwards.

5 years agoToo fast with git-mergetool, re-adding helper
Marius Mathiesen [Fri, 14 Sep 2012 13:53:21 +0000 (15:53 +0200)]
Too fast with git-mergetool, re-adding helper

5 years agoLdapGroup#ldap_group_names= handles CRLF as well as LF
Marius Mathiesen [Thu, 13 Sep 2012 13:41:35 +0000 (15:41 +0200)]
LdapGroup#ldap_group_names= handles CRLF as well as LF

5 years agoDon't display link to add member in Memberships#index
Marius Mathiesen [Thu, 13 Sep 2012 13:33:05 +0000 (15:33 +0200)]
Don't display link to add member in Memberships#index

5 years agoSearch for users using base dn, not group search DN
Marius Mathiesen [Thu, 13 Sep 2012 12:27:41 +0000 (14:27 +0200)]
Search for users using base dn, not group search DN

5 years agoInstance, not class
Marius Mathiesen [Thu, 13 Sep 2012 12:01:06 +0000 (14:01 +0200)]
Instance, not class

5 years agoReverse username transformation when passing username to LDAP
Marius Mathiesen [Thu, 13 Sep 2012 11:56:20 +0000 (13:56 +0200)]
Reverse username transformation when passing username to LDAP

5 years agoDon't display edit-link for LDAP group memberships
Marius Mathiesen [Thu, 13 Sep 2012 11:05:16 +0000 (13:05 +0200)]
Don't display edit-link for LDAP group memberships

5 years agoRepositories owned by an LDAP group should be considered group owned
Marius Mathiesen [Tue, 28 Aug 2012 12:24:59 +0000 (14:24 +0200)]
Repositories owned by an LDAP group should be considered group owned

5 years agoAllow users to control projects even with LDAP auth turned on
Marius Mathiesen [Tue, 28 Aug 2012 12:08:29 +0000 (14:08 +0200)]
Allow users to control projects even with LDAP auth turned on

5 years agoSupport transferring ownership of a repo to LDAP groups (update)
Marius Mathiesen [Tue, 28 Aug 2012 12:07:59 +0000 (14:07 +0200)]
Support transferring ownership of a repo to LDAP groups (update)

5 years agoLet LDAP group members administer projects
Marius Mathiesen [Tue, 28 Aug 2012 11:37:41 +0000 (13:37 +0200)]
Let LDAP group members administer projects

5 years agoAllow transferring project ownership to any groups user is member of
Marius Mathiesen [Tue, 28 Aug 2012 11:31:47 +0000 (13:31 +0200)]
Allow transferring project ownership to any groups user is member of

This fixes a failing test in the previous commit.
A user may transfer project ownership not just to groups he is admin for.

5 years agoSupport transferring project ownership to LDAP group
Marius Mathiesen [Tue, 28 Aug 2012 11:13:56 +0000 (13:13 +0200)]
Support transferring project ownership to LDAP group

5 years agoUse default protocol in merge request instructions
Marius Mathiesen [Tue, 28 Aug 2012 10:20:23 +0000 (12:20 +0200)]
Use default protocol in merge request instructions

In the "how to apply" section, respect which protocols are available.

5 years agoRemove referenced read access when teams are removed
Marius Mathiesen [Tue, 28 Aug 2012 09:26:00 +0000 (11:26 +0200)]
Remove referenced read access when teams are removed

5 years agoIntroduce LdapGroup#memberships
Marius Mathiesen [Tue, 28 Aug 2012 08:09:56 +0000 (10:09 +0200)]
Introduce LdapGroup#memberships

*Very* simplistic, will list only direct members and ignore several
 attributes (role, created at etc). But it does make it possible to
 follow the link from a project to its members.

5 years agoMake username transformation shareable
Marius Mathiesen [Fri, 20 Jul 2012 12:30:17 +0000 (14:30 +0200)]
Make username transformation shareable

Also some minor things:
- don't throw an error when viewing a user without LDAP group memberships
- don't debug LDAP output to stdout

5 years agoOne more
Marius Mathiesen [Fri, 20 Jul 2012 08:09:20 +0000 (10:09 +0200)]
One more

5 years agoWhoops
Marius Mathiesen [Fri, 20 Jul 2012 08:07:03 +0000 (10:07 +0200)]

5 years agoMore debugging: normalize login when searching for users
Marius Mathiesen [Fri, 20 Jul 2012 08:06:12 +0000 (10:06 +0200)]
More debugging: normalize login when searching for users

5 years agoAdding some debug statements
Marius Mathiesen [Fri, 20 Jul 2012 08:03:25 +0000 (10:03 +0200)]
Adding some debug statements

5 years agoFixed a typo in sample config file
Marius Mathiesen [Fri, 20 Jul 2012 07:50:32 +0000 (09:50 +0200)]
Fixed a typo in sample config file

5 years agoIntroducing support for using a different base DN when searching for groups
Marius Mathiesen [Fri, 20 Jul 2012 07:42:38 +0000 (09:42 +0200)]
Introducing support for using a different base DN when searching for groups

When using LDAP groups for authorization, we now support specifying a
different DN when searching for groups. By default, the same base_dn
as is used for authentication is used.

5 years agoHaving build_username private made test_ldap_connection give an error on invalid...
Marius Mathiesen [Thu, 19 Jul 2012 10:35:59 +0000 (12:35 +0200)]
Having build_username private made test_ldap_connection give an error on invalid password

5 years agoSupport authenticated bind in LDAP.
Marius Mathiesen [Thu, 19 Jul 2012 10:26:53 +0000 (12:26 +0200)]
Support authenticated bind in LDAP.

Many LDAP installations use a two-step authentication scheme:
- first you connect with an unprivileged user's credentials
- once that is done, connect with the real user

This is supported in Net::LDAP through the bind_as method, which will:
- bind as the bind user
- do a search (as the bind user) for a user record with the provided
  username and password
- if this matches too, let the user in

Gitorious now handles situations where no bind_user section was specified
in authentication.yml.

5 years agoMove inline classes out of same file
Marius Mathiesen [Tue, 17 Jul 2012 09:14:08 +0000 (11:14 +0200)]
Move inline classes out of same file

5 years agoDelegate group finder methods directly
Marius Mathiesen [Tue, 17 Jul 2012 09:01:32 +0000 (11:01 +0200)]
Delegate group finder methods directly

5 years agoInclude member list in Groups#new
Marius Mathiesen [Thu, 12 Jul 2012 13:37:48 +0000 (15:37 +0200)]
Include member list in Groups#new

5 years agoBetter add a failing test for private repositories as well
Marius Mathiesen [Thu, 12 Jul 2012 12:53:39 +0000 (14:53 +0200)]
Better add a failing test for private repositories as well

5 years agoSupport private repositories with LDAP authorization
Marius Mathiesen [Thu, 12 Jul 2012 12:49:21 +0000 (14:49 +0200)]
Support private repositories with LDAP authorization

This was easier than I feared. It was simply a matter of
- Use Team#find_by_name! to find an LdapGroup or Group to save
  as content membership
- Implement LdapGroup#member?
- Add a test which demonstrates this (Projects#show in private mode
  with a LdapGroup based content membership)

5 years agoList direct members in LdapGroup#show
Marius Mathiesen [Thu, 12 Jul 2012 08:58:27 +0000 (10:58 +0200)]
List direct members in LdapGroup#show

5 years agoProperly implement LdapGroup#members
Marius Mathiesen [Thu, 12 Jul 2012 08:53:15 +0000 (10:53 +0200)]
Properly implement LdapGroup#members

Note that not all members will be returned unless you're using a very flat
LDAP setup.

5 years agoCache the LDAP group names for an hour
Marius Mathiesen [Thu, 12 Jul 2012 08:52:28 +0000 (10:52 +0200)]
Cache the LDAP group names for an hour

5 years agoSupport looking up (User) members of an LDAP group
Marius Mathiesen [Thu, 12 Jul 2012 08:09:48 +0000 (10:09 +0200)]
Support looking up (User) members of an LDAP group

- Provide example values for membership and member attribute names
  in authentication_sample.yml

5 years agoMove group authorization strategies into separate classes
Marius Mathiesen [Tue, 10 Jul 2012 13:47:46 +0000 (15:47 +0200)]
Move group authorization strategies into separate classes

Our include/extend/configure setup has reached a level where I'm unable to
make an elegant solution at 4pm on a Tuesday.

Construct separate classes (strategies?) for Group and Ldap group authorization
backends to reduce code clutter.

5 years agoWe currently don't support listing members of a LDAP backed committership
Marius Mathiesen [Tue, 10 Jul 2012 12:56:33 +0000 (14:56 +0200)]
We currently don't support listing members of a LDAP backed committership

5 years agoGrant review access under LDAP authorization
Marius Mathiesen [Tue, 10 Jul 2012 11:30:25 +0000 (13:30 +0200)]
Grant review access under LDAP authorization

5 years agoDon't bother looking up group memberships for anonymous users
Marius Mathiesen [Tue, 10 Jul 2012 10:16:25 +0000 (12:16 +0200)]
Don't bother looking up group memberships for anonymous users

5 years agoImplement repository admin checks via LDAP authorization
Marius Mathiesen [Fri, 6 Jul 2012 13:15:22 +0000 (15:15 +0200)]
Implement repository admin checks via LDAP authorization

5 years agoSupport authorization for push with LDAP backend
Marius Mathiesen [Fri, 6 Jul 2012 12:39:23 +0000 (14:39 +0200)]
Support authorization for push with LDAP backend

When Gitorious is configured to use LDAP for authorization,
authorization for push needs to be done differently from

Rather than collecting all users who have push access and seeing if a
given user is included, we start off with the groups a user is member
of (from LDAP) and see if any of these have push access to the
repository. This is (mainly) because the list of users who are member
of a group lives in LDAP, not our database.

5 years agoDisplay group membership on profile page for any group implementation
Marius Mathiesen [Thu, 5 Jul 2012 12:08:34 +0000 (14:08 +0200)]
Display group membership on profile page for any group implementation

Added a convenience method for getting group memberships for a user in Team, use
this in view

5 years agoAdd documentation for bind user in sample authentication.yml
Marius Mathiesen [Tue, 3 Jul 2012 13:03:20 +0000 (15:03 +0200)]
Add documentation for bind user in sample authentication.yml

5 years agoSupport LdapGroup as committer
Marius Mathiesen [Fri, 8 Jun 2012 11:41:57 +0000 (13:41 +0200)]
Support LdapGroup as committer

- Complete LdapGroup names
- Support LdapGroup as committer in committerships
- Move fuzzy search for group into Team

5 years agoAdd validations to LdapGroup
Marius Mathiesen [Fri, 8 Jun 2012 10:54:33 +0000 (12:54 +0200)]
Add validations to LdapGroup

- First of all, member DNs should not contain the base DN
- Next, we will verify that the listed groups actually exist on
  the server

5 years agoSeems we've been rolling with a really antique LDAP library
Marius Mathiesen [Fri, 8 Jun 2012 10:53:03 +0000 (12:53 +0200)]
Seems we've been rolling with a really antique LDAP library

5 years agoSupport creating/updating projects with an LdapGroup as owner
Marius Mathiesen [Thu, 7 Jun 2012 12:55:58 +0000 (14:55 +0200)]
Support creating/updating projects with an LdapGroup as owner

- Extract more common behaviour in Group/LDapGroup

5 years agoSupport transferring ownership of a project to an LDAP team
Marius Mathiesen [Thu, 7 Jun 2012 12:27:26 +0000 (14:27 +0200)]
Support transferring ownership of a project to an LDAP team

- Also add lib/gitorious to ActiveSupport::Dependencies.load_once_paths
  to avoid "module unloaded" messages

5 years agoImprove browsing of (Ldap)Group.
Marius Mathiesen [Tue, 5 Jun 2012 13:42:31 +0000 (15:42 +0200)]
Improve browsing of (Ldap)Group.

LdapGroup owned projects now render correctly:
- Move LdapGroup url helpers into shared module
- Extract instance behaviors for Groups
- Extract partial for member listing in Groups#show

5 years agoClean up conditionals, replace with polymorphism
Marius Mathiesen [Tue, 5 Jun 2012 12:51:42 +0000 (14:51 +0200)]
Clean up conditionals, replace with polymorphism

5 years agoUnit test for Team, replace conditional with polymorphism
Marius Mathiesen [Tue, 5 Jun 2012 12:06:26 +0000 (14:06 +0200)]
Unit test for Team, replace conditional with polymorphism

5 years agoEnsure LdapGroup#ldap_group_names returns an array
Marius Mathiesen [Tue, 5 Jun 2012 09:04:43 +0000 (11:04 +0200)]
Ensure LdapGroup#ldap_group_names returns an array

5 years agoMatch LDAP-provided membership DNs to (internal) LdapGroups
Marius Mathiesen [Thu, 31 May 2012 13:13:42 +0000 (15:13 +0200)]
Match LDAP-provided membership DNs to (internal) LdapGroups

LDAP returns a list of groups a user is member of while Gitorious matches these DNs
to those LdapGroup objects registered with these DNs set up

5 years agoBuild an LDAP connection in the same way as for authentication
Marius Mathiesen [Thu, 31 May 2012 12:09:05 +0000 (14:09 +0200)]
Build an LDAP connection in the same way as for authentication

Ie: support encryption as well

5 years agoLet LdapGroup look up all LDAP group memberships for a user
Marius Mathiesen [Thu, 31 May 2012 12:06:55 +0000 (14:06 +0200)]
Let LdapGroup look up all LDAP group memberships for a user

Re-use configuration from LdapAuthentication

5 years agoMoving LDAP configuration into a separate class
Marius Mathiesen [Thu, 31 May 2012 11:51:17 +0000 (13:51 +0200)]
Moving LDAP configuration into a separate class

We will be re-using LDAP configuration specified for authentication when
using LDAP for authorization. Extracted this into a reusable module.

5 years agoRender the correct label
Marius Mathiesen [Tue, 29 May 2012 13:53:49 +0000 (15:53 +0200)]
Render the correct label

5 years agoDamn you, Rails
Marius Mathiesen [Tue, 29 May 2012 13:50:50 +0000 (15:50 +0200)]
Damn you, Rails

5 years agoAllow configuring which Team implementation to use
Marius Mathiesen [Tue, 29 May 2012 13:00:17 +0000 (15:00 +0200)]
Allow configuring which Team implementation to use

Added the configuration to environment.rb, seems to avoid some
of the missing constant issues we've seen before.

5 years agoDisplay, edit list of membering DNs in LdapGroups
Marius Mathiesen [Tue, 29 May 2012 12:41:38 +0000 (14:41 +0200)]
Display, edit list of membering DNs in LdapGroups

5 years agoStarting extraction of duplicated group/ldapgroup funcitonality into
Thomas Kjeldahl Nilsson [Tue, 22 May 2012 11:39:52 +0000 (13:39 +0200)]
Starting extraction of duplicated group/ldapgroup funcitonality into
common module GroupBehavior

5 years agoConsistency is nice
Thomas Kjeldahl Nilsson [Tue, 22 May 2012 06:34:57 +0000 (08:34 +0200)]
Consistency is nice

5 years agoFixed functionals
Thomas Kjeldahl Nilsson [Tue, 22 May 2012 06:33:47 +0000 (08:33 +0200)]
Fixed functionals

5 years agoExtracted rest of Team actions from controller, created LdapGroup
Thomas Kjeldahl Nilsson [Fri, 18 May 2012 13:52:03 +0000 (15:52 +0200)]
Extracted rest of Team actions from controller, created LdapGroup

5 years agoAbstracted the Group concept behind a Team api.
Thomas Kjeldahl Nilsson [Fri, 18 May 2012 11:56:11 +0000 (13:56 +0200)]
Abstracted the Group concept behind a Team api.

First step to swappable db, ldap etc strategies for Groups: abstract
it behind an API.

5 years agoVerifying current user group admin role directly instead of through
Thomas Kjeldahl Nilsson [Fri, 18 May 2012 10:54:15 +0000 (12:54 +0200)]
Verifying current user group admin role directly instead of through
auth fw.

Hitting the admin?(user, group) method in our Autorization framework
breaks in development mode due to problem reloading the
DatabaseAuthorization module. Working around this for now since we
don't currently need to hit ldap/database auth strategies for
determining group adminship.

5 years agoMoved init of auth strategies from initializer into actual class.
Thomas Kjeldahl Nilsson [Fri, 18 May 2012 09:59:18 +0000 (11:59 +0200)]
Moved init of auth strategies from initializer into actual class.

Classes are reloaded on each request in dev mode, instead of boot-time
as in production mode. Classes should if possible self-configure
instead of relying on boot-time initializers, to make sure per-request
reload works as expected.

5 years agoStarting on ldap group lookup independently of Gitorious env
Marius Mathiesen [Tue, 15 May 2012 13:48:59 +0000 (15:48 +0200)]
Starting on ldap group lookup independently of Gitorious env

5 years agoUpdate version tag v2.3.1
Marius Mathiesen [Mon, 8 Oct 2012 07:15:47 +0000 (09:15 +0200)]
Update version tag

5 years agoSet ENV["HOME"] to make resque work with SSH keys
Marius Mathiesen [Thu, 4 Oct 2012 12:15:33 +0000 (14:15 +0200)]
Set ENV["HOME"] to make resque work with SSH keys

5 years agoAdding a template for running Resque workers under Upstart
Marius Mathiesen [Thu, 4 Oct 2012 11:51:55 +0000 (13:51 +0200)]
Adding a template for running Resque workers under Upstart

5 years agoOh, and we'll need bin/bundle too!
Marius Mathiesen [Thu, 4 Oct 2012 11:49:40 +0000 (13:49 +0200)]
Oh, and we'll need bin/bundle too!

5 years agoFix Unicorn upstart script
Marius Mathiesen [Thu, 4 Oct 2012 11:32:19 +0000 (13:32 +0200)]
Fix Unicorn upstart script

bin/unicorn will chdir now, so we don't need to do that from the script.
Rather just use the full path.

5 years agoUse our awesome new bin/unicorn instead of the (now removed) script/unicorn
Marius Mathiesen [Thu, 4 Oct 2012 11:29:18 +0000 (13:29 +0200)]
Use our awesome new bin/unicorn instead of the (now removed) script/unicorn

5 years agoAdd bin/console and bin/create_user which runs with the correct environment
Marius Mathiesen [Thu, 4 Oct 2012 11:26:44 +0000 (13:26 +0200)]
Add bin/console and bin/create_user which runs with the correct environment

Also put deprecation warning in script/create_user, as we have a
replacement now.

5 years agoMake Rake happy by chdir-ing to RAILS_ROOT
Marius Mathiesen [Thu, 4 Oct 2012 11:17:01 +0000 (13:17 +0200)]
Make Rake happy by chdir-ing to RAILS_ROOT

5 years agoIntroducing $GITORIOUS_ROOT/bin for CLI work with Gitorious
Marius Mathiesen [Thu, 4 Oct 2012 11:03:12 +0000 (13:03 +0200)]
Introducing $GITORIOUS_ROOT/bin for CLI work with Gitorious

In order to make it easier to run Gitorious CLI tools directly,
without dealing with switching users, running `bundle exec` and so,
we're now shipping some preconfigured scripts inside bin/.

These scripts will load a functional Gitorious environment and (if
running in production mode) require that either the user configured in
gitorious.yml is used or switch to that user before running the
scripts. This means these scripts can be run either as the configured
user (usually "git") or by root (in which case the scripts will switch
to that user.

The first two CLI tools included are rake (which lets you invoke Rake)
and unicorn (which lets you run Unicorn).

5 years agoShip a rake wrapper that can be exec'ed without spawning a new shell
Marius Mathiesen [Thu, 4 Oct 2012 09:21:09 +0000 (11:21 +0200)]
Ship a rake wrapper that can be exec'ed without spawning a new shell

5 years agoFix misleading typo in unicorn wrapper script
Marius Mathiesen [Thu, 4 Oct 2012 09:20:42 +0000 (11:20 +0200)]
Fix misleading typo in unicorn wrapper script

5 years agoMake the functional tests pass with new empty cookie behaviour
Marius Mathiesen [Thu, 4 Oct 2012 09:07:47 +0000 (11:07 +0200)]
Make the functional tests pass with new empty cookie behaviour

The Set-Cookie response header will be nil, not an empty array now.

5 years agoStop Rails from sending empty Set-Cookie headers if no cookies are set
Marius Mathiesen [Thu, 4 Oct 2012 09:02:47 +0000 (11:02 +0200)]
Stop Rails from sending empty Set-Cookie headers if no cookies are set

This behaviour was dealt with by Passenger, Thin etc., but not when
running under Unicorn. This makes Gitorious support caching when running under Unicorn.

Manually backported from

5 years agoMake rake resque:work load processors
Marius Mathiesen [Thu, 4 Oct 2012 07:30:21 +0000 (09:30 +0200)]
Make rake resque:work load processors

5 years agoUpdate the gemfile.lock
Thomas Kjeldahl Nilsson [Wed, 3 Oct 2012 18:47:27 +0000 (20:47 +0200)]
Update the gemfile.lock

5 years agoStart using our new just_paginate gem instead of will_paginate
Thomas Kjeldahl Nilsson [Wed, 3 Oct 2012 18:32:48 +0000 (20:32 +0200)]
Start using our new just_paginate gem instead of will_paginate

We do the project index controller first, get around to the rest of
them as time permits. Goal is to rip out will_paginate altogether as
it's turned into multiple bugs over time.

5 years agoSupport REE cow-friendly GC, actually use number of workers
Marius Mathiesen [Wed, 3 Oct 2012 11:17:05 +0000 (13:17 +0200)]
Support REE cow-friendly GC, actually use number of workers

5 years agoProvide Upstart templates for git-daemons and git-proxy
Marius Mathiesen [Tue, 2 Oct 2012 11:12:15 +0000 (13:12 +0200)]
Provide Upstart templates for git-daemons and git-proxy

5 years agoCall setuid/setgid in script/git-proxy
Marius Mathiesen [Tue, 2 Oct 2012 11:08:33 +0000 (13:08 +0200)]
Call setuid/setgid in script/git-proxy

In able to use the git proxy from Upstart (in Upstart versions which
don't support setgid/setuid themselves) without needing an extra
shell (su -c or equivalent) we might as well do this ourselves.

If all these conditions are met:
- RAILS_ENV=production
- We're running as root
- gitorious.yml specifies gitorious_user

we will switch the script to the gid and uid of the specified user.

5 years agoUpstart, how I love thee.
Marius Mathiesen [Mon, 1 Oct 2012 12:00:55 +0000 (14:00 +0200)]
Upstart, how I love thee.

Start on startup it is.

5 years agoUse the sample Unicorn config file in sample Upstart recipe
Marius Mathiesen [Mon, 1 Oct 2012 11:35:34 +0000 (13:35 +0200)]
Use the sample Unicorn config file in sample Upstart recipe

5 years agoAdding Unicorn to gemfile
Marius Mathiesen [Mon, 1 Oct 2012 11:23:26 +0000 (13:23 +0200)]
Adding Unicorn to gemfile

Also including some starting points:

- A wrapper in script/unicorn, which spawns a Unicorn process with the
  correct environment and will not need to fork twice (which confuses
- A default Unicorn configuration file
- An Upstart recipe for controlling Unicorn

5 years agoSupport git-http under nginx
Marius Mathiesen [Fri, 28 Sep 2012 13:14:10 +0000 (15:14 +0200)]
Support git-http under nginx