blob: a4ba1758a6a65736ae53469960f7049f07ddbd7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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>
© 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>
|