summaryrefslogtreecommitdiff
path: root/site/server/cgit
diff options
context:
space:
mode:
Diffstat (limited to 'site/server/cgit')
-rw-r--r--site/server/cgit/index.html96
1 files changed, 87 insertions, 9 deletions
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 @@
<link rel="icon" href="../../assets/images/favicon.png">
- <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.7">
+ <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
@@ -26,7 +26,7 @@
- <link rel="stylesheet" href="../../assets/stylesheets/main.8608ea7d.min.css">
+ <link rel="stylesheet" href="../../assets/stylesheets/main.342714a4.min.css">
@@ -112,11 +112,13 @@
- <label class="md-header__button md-icon" for="__search">
-
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
- </label>
- <div class="md-search" data-md-component="search" role="dialog">
+
+
+ <label class="md-header__button md-icon" for="__search">
+
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
+ </label>
+ <div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
@@ -148,6 +150,7 @@
</div>
</div>
</div>
+
</nav>
@@ -196,6 +199,7 @@
<a href="../.." class="md-nav__link">
+
<span class="md-ellipsis">
Home
@@ -219,6 +223,7 @@
+
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
@@ -229,6 +234,7 @@
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
+
<span class="md-ellipsis">
Server
@@ -255,6 +261,7 @@
<a href="../server/" class="md-nav__link">
+
<span class="md-ellipsis">
Server Setup
@@ -286,6 +293,7 @@
<label class="md-nav__link md-nav__link--active" for="__toc">
+
<span class="md-ellipsis">
Cgit with gitolite
@@ -298,6 +306,7 @@
<a href="./" class="md-nav__link md-nav__link--active">
+
<span class="md-ellipsis">
Cgit with gitolite
@@ -400,6 +409,15 @@
</li>
+ <li class="md-nav__item">
+ <a href="#running-cgit-with-nginx" class="md-nav__link">
+ <span class="md-ellipsis">
+ Running cgit with nginx
+ </span>
+ </a>
+
+</li>
+
</ul>
</nav>
@@ -442,6 +460,7 @@
<a href="../ddns/" class="md-nav__link">
+
<span class="md-ellipsis">
DDNS
@@ -464,6 +483,7 @@
<a href="../syncthing/" class="md-nav__link">
+
<span class="md-ellipsis">
Syncthing
@@ -493,6 +513,7 @@
+
<li class="md-nav__item md-nav__item--nested">
@@ -503,6 +524,7 @@
<label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
+
<span class="md-ellipsis">
Desktop
@@ -529,6 +551,7 @@
<a href="../../desktop/desktop/" class="md-nav__link">
+
<span class="md-ellipsis">
Desktop
@@ -551,6 +574,7 @@
<a href="../../desktop/rclone/" class="md-nav__link">
+
<span class="md-ellipsis">
Rclone
@@ -573,6 +597,7 @@
<a href="../../desktop/thunderbird/" class="md-nav__link">
+
<span class="md-ellipsis">
Thunderbird
@@ -595,6 +620,7 @@
<a href="../../desktop/syncthing/" class="md-nav__link">
+
<span class="md-ellipsis">
Syncthing
@@ -617,6 +643,7 @@
<a href="../../desktop/remote_nvim/" class="md-nav__link">
+
<span class="md-ellipsis">
Remote Nvim
@@ -639,6 +666,7 @@
<a href="../../desktop/wayland/" class="md-nav__link">
+
<span class="md-ellipsis">
Wayland
@@ -668,6 +696,7 @@
+
<li class="md-nav__item md-nav__item--nested">
@@ -678,6 +707,7 @@
<label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
+
<span class="md-ellipsis">
Phone
@@ -704,6 +734,7 @@
<a href="../../phone/lineageos/" class="md-nav__link">
+
<span class="md-ellipsis">
LineageOS
@@ -733,6 +764,7 @@
+
<li class="md-nav__item md-nav__item--nested">
@@ -743,6 +775,7 @@
<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
+
<span class="md-ellipsis">
Food
@@ -769,6 +802,7 @@
<a href="../../food/curry/" class="md-nav__link">
+
<span class="md-ellipsis">
Curry
@@ -791,6 +825,7 @@
<a href="../../food/tempora/" class="md-nav__link">
+
<span class="md-ellipsis">
Tempora
@@ -813,6 +848,7 @@
<a href="../../food/spicy-shrimp/" class="md-nav__link">
+
<span class="md-ellipsis">
Spicy Shrimp
@@ -842,6 +878,7 @@
<a href="../../about/" class="md-nav__link">
+
<span class="md-ellipsis">
About
@@ -958,6 +995,15 @@
</li>
+ <li class="md-nav__item">
+ <a href="#running-cgit-with-nginx" class="md-nav__link">
+ <span class="md-ellipsis">
+ Running cgit with nginx
+ </span>
+ </a>
+
+</li>
+
</ul>
</nav>
@@ -1080,6 +1126,36 @@ WantedBy=multi-user.target
}
}
</code></pre>
+<h3 id="running-cgit-with-nginx">Running cgit with nginx</h3>
+<pre><code>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;
+ }
+}
+</code></pre>
<h2 id="cgit-configuration">Cgit configuration</h2>
<p>More detailed documentation can be found on the cgitrc(5) <a href="https://linux.die.net/man/5/cgitrc">manual</a>.</p>
<p>enable-git-config is used to allow for gitweb.* configurations in gitolite, e.g. description, owner.</p>
@@ -1143,10 +1219,12 @@ WantedBy=multi-user.target
</div>
- <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.f8cc74c7.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
+
+
+ <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.d50fe291.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
- <script src="../../assets/javascripts/bundle.c8b220af.min.js"></script>
+ <script src="../../assets/javascripts/bundle.13a4f30d.min.js"></script>
</body>