aboutsummaryrefslogblamecommitdiff
blob: 9504e29ff7dcad8c5d46900033f4b6ca14d9dc7d (plain) (tree)


















                                                                     
              
 
server {
    server_name  {{ lookup('env', 'CGIT_DOMAIN') }};
    root /usr/local/www/cgit;
    try_files $uri @cgit;

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

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/local/www/nginx-dist;
    }

    listen 80;
}
Powered by cgit v1.2.3 (git 2.41.0)