Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

dgellow/nanogit

Repository files navigation

Build Status Coverage Status Go Report Card

nanogit - A lightweight git server with simple setup and configuration

HIGHLY EXPERIMENTAL, DO NOT USE IN PRODUCTION

Introduction

nanogit is a small server to manage git projects.

It has following features:

  • Organizations to group repositories and manage rights(read/write) in development
  • Teams, a group of users in an organization in development
  • Entire config in one file, in a human readable format (YAML)

Install

From go get

$ go get github.com/dgellow/nanogit

Usage

$ nanogit server

# If you want to use a different config file
$ nanogit server --config /path/to/custom/configfile.yml

# When the server is running you can begin to use git commands
$ git clone git@localhost:1337/MyOrg/myproject.git

Configuration

Server and access settings are configured in a YAML file. The default one is config.yml at the root of the project.

server:
  port: 1337
  host: localhost
  root: /var/nanogit/
  user: nanogit
  group: nanogit

orgs:
  - id: fixme
    description: FIXME Hackerspace
    team:
      - name: default
        write: yes
        read: yes
      - name: ctf
        write: yes
        read: yes
      - name: comity
        write: yes
        read: yes
  - id: qrclabs
    description: QRC Labs company
    team:
      - name: default
        write: no
        read: yes
      - name: dev
        write: yes
        read: yes
      - name: admin
        write: no
        read: yes

users:
  - name: dgellow
    sshkeys:
      - from: https
        val: github.com/dgellow.keys
    orgs:
      - id: qrclabs
        teams:
          - dev
          - admin
      - id: fixme
  - name: notgcmalloc
    sshkeys:
      - from: hardcoded
        val: ssh-rsa AAAAB3NzaC1[truncated for the sake of readability]+MWYbwK1Tgx
      - from: file
        val: /path/to/file
    orgs:
      - id: fixme
        teams:
          - ctf

Releases

No releases published

Packages

 
 
 

Languages