stagit

static git page generator
git clone https://git.awy.one/stagit
Log | Files | Refs | README | LICENSE

docker/nginx.conf (637B) - raw


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
  listen 80 default_server;
  listen [::]:80 default_server;

  server_name _;

  root /var/www/git;
  index index.html;

  location / {
    try_files $uri $uri/ =404;
  }

  # clone by http
  location ~ /.+/(info/refs|git-upload-pack) {
    include             fastcgi_params;
    fastcgi_param       SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend;
    fastcgi_param       PATH_INFO           $uri;
    fastcgi_param       GIT_HTTP_EXPORT_ALL "";
    fastcgi_param       GIT_PROJECT_ROOT    /srv/git;
    fastcgi_param       HOME                /srv/git;
    fastcgi_pass        unix:/run/fcgiwrap/fcgiwrap.sock;
  }
}