From ed0d54cac2702bb3b952973b33ff2ede436dcfd4 Mon Sep 17 00:00:00 2001 From: Joshua Yun Date: Sun, 18 May 2025 18:13:14 -0500 Subject: fix: added new more wayland things and the cgit nginx config --- site/server/cgit/index.html | 96 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 87 insertions(+), 9 deletions(-) (limited to 'site/server/cgit/index.html') diff --git a/site/server/cgit/index.html b/site/server/cgit/index.html index 2bf95b9..371ba3d 100644 --- a/site/server/cgit/index.html +++ b/site/server/cgit/index.html @@ -18,7 +18,7 @@ - + @@ -26,7 +26,7 @@ - + @@ -112,11 +112,13 @@ - - + @@ -196,6 +199,7 @@ + Home @@ -219,6 +223,7 @@ +
  • @@ -229,6 +234,7 @@ + Server Setup @@ -286,6 +293,7 @@ + Cgit with gitolite @@ -398,6 +407,15 @@ +
  • + +
  • + + + Running cgit with nginx + + +
  • @@ -442,6 +460,7 @@ + DDNS @@ -464,6 +483,7 @@ + Syncthing @@ -493,6 +513,7 @@ +
  • @@ -503,6 +524,7 @@ + Desktop @@ -551,6 +574,7 @@ + Rclone @@ -573,6 +597,7 @@ + Thunderbird @@ -595,6 +620,7 @@ + Syncthing @@ -617,6 +643,7 @@ + Remote Nvim @@ -639,6 +666,7 @@ + Wayland @@ -668,6 +696,7 @@ +
  • @@ -678,6 +707,7 @@ + LineageOS @@ -733,6 +764,7 @@ +
  • @@ -743,6 +775,7 @@ + Curry @@ -791,6 +825,7 @@ + Tempora @@ -813,6 +848,7 @@ + Spicy Shrimp @@ -842,6 +878,7 @@ + About @@ -956,6 +993,15 @@ +
  • + +
  • + + + Running cgit with nginx + + +
  • @@ -1080,6 +1126,36 @@ WantedBy=multi-user.target } } +

    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

    More detailed documentation can be found on the cgitrc(5) manual.

    enable-git-config is used to allow for gitweb.* configurations in gitolite, e.g. description, owner.

    @@ -1143,10 +1219,12 @@ WantedBy=multi-user.target - + + + - + -- cgit v1.2.3