List for cgit developers and users
 help / color / mirror / Atom feed
From: thuban at yeuxdelibad.net (Thuban)
Subject: cgit and nginx on debian
Date: Sat, 14 Mar 2015 09:25:49 +0100	[thread overview]
Message-ID: <20150314082549.GB2814@localhost> (raw)

Hi,
I am trying to self-host my git repos, but I can't figure how to achieve
this. Yes, there are many tutorials, but no one works in the end.

What I need : 
- Clone over ssh
- Clone over http
- cgit on http://git.mydomain.com

For now, I have installer nginx, cgit and fcgiwrap. I have access to
cgit index page, but as soon as I wan't to go further (click on a repo,
on tree or commit...), it fails. The url seems broken, because i repeat
itself, ie : http://git.mydomain.com/shaarlyp/shaarlyp/tree/

Here is my nginx config : 

    server {
        listen                80;
        server_name localhost;
        index cgit.cgi;

        root                  /usr/share/cgit;
        try_files             $uri @cgit;

        location @cgit {
        include             fastcgi_params;
        fastcgi_param       SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
        fastcgi_param       PATH_INFO       $uri;
        fastcgi_param       QUERY_STRING    $args;
        fastcgi_param       HTTP_HOST       $server_name;
        fastcgi_pass        unix:/run/fcgiwrap.socket;
        }
    }

cgit is installed via debian jessie package.

Do you have any recent documentation, or any advice?

Regards,

-- 
Thuban
PubKey : http://yeuxdelibad.net/Divers/thuban.pub


             reply	other threads:[~2015-03-14  8:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-14  8:25 thuban [this message]
2015-03-14  8:28 ` luky-37
2015-03-14 10:00   ` thuban
2015-03-14 13:01     ` thuban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150314082549.GB2814@localhost \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).