diff options
| author | Benjamin Stürz <benni@stuerz.xyz> | 2022-07-19 02:27:35 +0200 |
|---|---|---|
| committer | Benjamin Stürz <benni@stuerz.xyz> | 2022-07-19 02:27:35 +0200 |
| commit | 69a95582dd6ba5b50e2d1d3e91303b0150bf78f7 (patch) | |
| tree | 3abf21fb377121d12b1cec6ca15d4821e968f54b | |
| parent | 0e72771c25c6bf0dd38b7a9c0332e104df8c15d0 (diff) | |
Fixed Cgit
Without this fix my Cgit instance didn't work properly.
Repos would show up, but only the latest commit could be accessed.
Also "tree" and "log" didn't work for each commit.
This PR hopes to fix it.
Signed-off-by: Benjamin Stürz <benni@stuerz.xyz>
| -rw-r--r-- | content/cgit.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/cgit.md b/content/cgit.md index 63bcf80..7e3dadc 100644 --- a/content/cgit.md +++ b/content/cgit.md @@ -61,8 +61,9 @@ server { location @cgit { include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; - fastcgi_param PATH_INFO $request_uri; - fastcgi_param QUERY_STRING $query_string; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + fastcgi_param HTTP_HOST $server_name; fastcgi_pass unix:/run/fcgiwrap.socket; } } |
