summaryrefslogtreecommitdiff
path: root/rafts/blog/cgit.html
diff options
context:
space:
mode:
Diffstat (limited to 'rafts/blog/cgit.html')
-rw-r--r--rafts/blog/cgit.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/rafts/blog/cgit.html b/rafts/blog/cgit.html
new file mode 100644
index 0000000..a4ba175
--- /dev/null
+++ b/rafts/blog/cgit.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Ben Sanders Online Space</title>
+ <link rel="stylesheet" href="/assets/css/main.css">
+ <!-- Privacy-friendly analytics by Plausible -->
+ <script async src="https://plausible.io/js/pa-JWiyAnkl2l96nMNDBD7OS.js"></script>
+ <script>
+ window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
+ plausible.init()
+ </script>
+</head>
+<body>
+ <main>
+ <header>
+ <div class="wrap">
+ <nav>
+ <a class="logo" href="/"><h1>Ben Sanders</h1></a>
+ <div class="nav-link">
+ <a href="/">Home</a>
+ <a href="/about">About</a>
+ </div>
+ </nav>
+ </div>
+ </header>
+<section id="post">
+ <div class="wrap article-grid">
+ <h2>cgit</h2>
+ <small class="meta">Benjamin Sanders | 28 November 2025 | cgit</small>
+ <p>Since I’ve moved my website(s) over to a dedicated server I started using I’ve been meaning to configure my own host for git repos. I ran
+into some trouble getting it to work properly but thanks to <a href="https://lukesmith.xyz">Luke Smith’s</a> <a href="https://landchad.net">landchad.net</a> somebody had written an article how to get a basic one
+working.</p>
+
+<p>Turns out the main thing I was missing was this line from my nginx site config file <code class="language-plaintext highlighter-rouge">try_files $uri @cgit ;</code>. The error that fixed was a 403 Forbidden error I kept getting when attempting to visit <a href="https://git.sanders.life/">git.sanders.life</a>.</p>
+
+<p>I did use the article to make sure HTTPS cloning would work too though and cloned a couple repos I’m interested in having a mirror.</p>
+
+<p>Now, though, I can freely push my repos to my own server with a read-only frontend to it for other netizens!</p>
+
+<p>Anyway, thanks for reading this little update to my site and services.</p>
+
+ </div>
+</section>
+ </main>
+ <footer>
+ &copy; Ben Sanders, 2026
+ <!-- Default Statcounter code for My Personal Website
+ https://bensanders.net/ -->
+ <script type="text/javascript">
+ var sc_project=13339537;
+ var sc_invisible=1;
+ var sc_security="af47feaa";
+ </script>
+ <script type="text/javascript"
+ src="https://www.statcounter.com/counter/counter.js"
+ async></script>
+ <noscript><div class="statcounter"><a title="Web Analytics
+ Made Easy - Statcounter" href="https://statcounter.com/"
+ target="_blank"><img class="statcounter"
+ src="https://c.statcounter.com/13339537/0/af47feaa/1/"
+ alt="Web Analytics Made Easy - Statcounter"
+ referrerPolicy="no-referrer-when-downgrade"></a></div></noscript>
+ <!-- End of Statcounter Code -->
+ <a href="https://statcounter.com/p13339537/?guest=1">View My
+ Stats</a>
+ </footer>
+ </body>
+</html> \ No newline at end of file