Code Monkey home page Code Monkey logo

cgit-gitolite's Introduction

This is just a reminder for me how to setup cgit + gitolite + fcgiwrap + nginx on server running on void-linux

Update the system and install all the necessary stuff

xbps-install -Syu git net-tools mg highlight cgit nginx fcgiwrap gitolite

Create the git user

useradd -m -r -s /bin/bash git

Add the service to run user-service for git user (to run fcgiwrap)

cp runsvdir-git /etc/sv/runsvdir-git

Add the fcgiwrap service to user git and run the runsvdir-git service

mkdir -p /home/git/service
cp -rv service/fcgiwrap /home/git/service
sv start runsvdir-git

Gitolite (copied from the site, may be changed, dunno)

<yourname> is the public key you copied on the server, actually you can get it from /root/.ssh/authorized_keys I guess.

gitolite setup -pk <yourname>.pub

Cool thingy to auto-create repos

@users = qqq
repo CREATOR/[a-z]..*
    C = @users
    RW+ = CREATOR
    RW = WRITERS
    R = READERS

Add the nginx config (somehow, as a vhost, or just adjust the nginx.conf)

Also don’t forget to change user directive in nginx to run it from git user.

cgit config (/etc/cgitrc)

#cache-size=1000
css=/cgit.css
[email protected]:
enable-index-links=1
enable-follow-links=1
enable-log-filecount=1
enable-log-linecount=1
max-stats=quarter
root-title=QQQ's repos
root-desc=Embarassing stuff
snapshots=tar.gz
project-list=/home/git/projects.list
scan-path=/home/git/repositories/
virtual-root=/

Run nginx

sv start nginx

PROFIT

But probably something is off.

cgit-gitolite's People

Contributors

queyenth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.