diff options
author | Joshua Yun <joshua@joshuayun.com> | 2025-05-18 18:13:14 -0500 |
---|---|---|
committer | Joshua Yun <joshua@joshuayun.com> | 2025-05-18 18:13:14 -0500 |
commit | ed0d54cac2702bb3b952973b33ff2ede436dcfd4 (patch) | |
tree | 0f0919864da167f06b0f06467d25dffff6dd4ef4 /docs/server/cgit.md | |
parent | 4981aacb593c92bbc738d53f2b119fcccc7a300b (diff) | |
download | wiki-ed0d54cac2702bb3b952973b33ff2ede436dcfd4.tar.gz |
fix: added new more wayland things and the cgit nginx config
Diffstat (limited to 'docs/server/cgit.md')
-rw-r--r-- | docs/server/cgit.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/server/cgit.md b/docs/server/cgit.md index 72db5ed..f685118 100644 --- a/docs/server/cgit.md +++ b/docs/server/cgit.md @@ -110,6 +110,36 @@ Add cgit configuration to caddy. } } +### Running cgit with nginx + + server { + listen 80; + server_name git.joshuayun.com; + return 301 https://$host$request_uri; + } + + server { + listen 443 ssl; + server_name git.joshuayun.com; + + // Other nginx configs, e.g. ssl here + + root /usr/share/cgit/; + try_files $uri @cgit; + + location ~* ^.+\.(css|png|ico)$ { + root /usr/share/cgit/; + } + + location / { + fastcgi_pass localhost:8999; + fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; + fastcgi_param DOCUMENT_ROOT /usr/lib/cgit/; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + fastcgi_param HTTP_HOST $server_name; + } + } ## Cgit configuration |