Skip to content

Instantly share code, notes, and snippets.

@gsf
Created July 30, 2017 02:50

Revisions

  1. gsf created this gist Jul 30, 2017.
    5 changes: 5 additions & 0 deletions cgitrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    css=/s/cgit.css
    logo=/s/cgit.png
    virtual-root=/s/
    remove-suffix=1
    scan-path=/srv/git/
    12 changes: 12 additions & 0 deletions nginx-site.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    server {
    ...
    location /s/ {
    alias /var/www/htdocs/cgit/;
    try_files $uri @cgit;
    }
    location @cgit {
    include uwsgi_params;
    uwsgi_modifier1 9;
    uwsgi_pass unix:/run/uwsgi/app/cgit/socket;
    }
    }
    6 changes: 6 additions & 0 deletions uwsgi-cgit.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    [uwsgi]
    master = true
    plugins = cgi
    processes = 1
    threads = 2
    cgi = /s/=/var/www/htdocs/cgit/cgit.cgi