nanogit

command module
v0.0.0-...-6a8b24c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2017 License: MIT Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL