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 ++++++++++++++++++++++++++++++++++++---- site/server/ddns/index.html | 48 ++++++++++++++++---- site/server/server/index.html | 48 ++++++++++++++++---- site/server/syncthing/index.html | 48 ++++++++++++++++---- 4 files changed, 204 insertions(+), 36 deletions(-) (limited to 'site/server') 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 - + + + - + diff --git a/site/server/ddns/index.html b/site/server/ddns/index.html index d4a3e7f..476e20d 100644 --- a/site/server/ddns/index.html +++ b/site/server/ddns/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 @@ -277,6 +284,7 @@ + Cgit with gitolite @@ -308,6 +316,7 @@ + DDNS @@ -413,6 +423,7 @@ + Syncthing @@ -442,6 +453,7 @@ +
  • @@ -452,6 +464,7 @@ + Desktop @@ -500,6 +514,7 @@ + Rclone @@ -522,6 +537,7 @@ + Thunderbird @@ -544,6 +560,7 @@ + Syncthing @@ -566,6 +583,7 @@ + Remote Nvim @@ -588,6 +606,7 @@ + Wayland @@ -617,6 +636,7 @@ +
  • @@ -627,6 +647,7 @@ + LineageOS @@ -682,6 +704,7 @@ +
  • @@ -692,6 +715,7 @@ + Curry @@ -740,6 +765,7 @@ + Tempora @@ -762,6 +788,7 @@ + Spicy Shrimp @@ -791,6 +818,7 @@ + About @@ -979,10 +1007,12 @@ Status updates can be seen in a web server by going to localhost:8000.

    - + + + - + diff --git a/site/server/server/index.html b/site/server/server/index.html index c5f47f8..4e309e0 100644 --- a/site/server/server/index.html +++ b/site/server/server/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 @@ -396,6 +404,7 @@ + Cgit with gitolite @@ -418,6 +427,7 @@ + DDNS @@ -440,6 +450,7 @@ + Syncthing @@ -469,6 +480,7 @@ +
  • @@ -479,6 +491,7 @@ + Desktop @@ -527,6 +541,7 @@ + Rclone @@ -549,6 +564,7 @@ + Thunderbird @@ -571,6 +587,7 @@ + Syncthing @@ -593,6 +610,7 @@ + Remote Nvim @@ -615,6 +633,7 @@ + Wayland @@ -644,6 +663,7 @@ +
  • @@ -654,6 +674,7 @@ + LineageOS @@ -709,6 +731,7 @@ +
  • @@ -719,6 +742,7 @@ + Curry @@ -767,6 +792,7 @@ + Tempora @@ -789,6 +815,7 @@ + Spicy Shrimp @@ -818,6 +845,7 @@ + About @@ -1096,10 +1124,12 @@ sudo systemctl restart caddy - + + + - + diff --git a/site/server/syncthing/index.html b/site/server/syncthing/index.html index fdae47e..ee5a2b7 100644 --- a/site/server/syncthing/index.html +++ b/site/server/syncthing/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 @@ -277,6 +284,7 @@ + Cgit with gitolite @@ -299,6 +307,7 @@ + DDNS @@ -330,6 +339,7 @@ + Syncthing @@ -427,6 +438,7 @@ +
  • @@ -437,6 +449,7 @@ + Desktop @@ -485,6 +499,7 @@ + Rclone @@ -507,6 +522,7 @@ + Thunderbird @@ -529,6 +545,7 @@ + Syncthing @@ -551,6 +568,7 @@ + Remote Nvim @@ -573,6 +591,7 @@ + Wayland @@ -602,6 +621,7 @@ +
  • @@ -612,6 +632,7 @@ + LineageOS @@ -667,6 +689,7 @@ +
  • @@ -677,6 +700,7 @@ + Curry @@ -725,6 +750,7 @@ + Tempora @@ -747,6 +773,7 @@ + Spicy Shrimp @@ -776,6 +803,7 @@ + About @@ -934,10 +962,12 @@ It is recommended to setup a user login, especially if you are - + + + - + -- cgit v1.2.3