blob: 2fb0e26c0d6760e88726aae4517da58e282684da (
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
|
---
template=post
title=Corgi
style=/styles/post.css
---
source: <a href="https://git.dreamy.place/corgi/about/">git.dreamy.place/corgi</a>
Corgi is a CGI server that tries to be simple to deploy and keep running.
You can see corgi in action at the cgit linked above,
<a href="https://git.dreamy.place">git.dreamy.place</a>, or at the stats page
here <a href="https://git.dreamy.place/stats">git.dreamy.place/stats</a>.
By default, corgi listens on <code>localhost:26744</code> and cannot do
TLS. It is recommended you proxy corgi through nginx, caddy, or another
reverse proxy.
The stats page linked above is part of corgi. The server will record some details about
every request and put them into an sqlite database. There is a cgi program
in the code repository alongside corgi that creates the stats page by reading
that same database.
<p style="margin-bottom: 0">Here is the config I use with corgi:</p>
[@paragraphs off]
<pre style="width: 100%; max-height: 10rem; overflow-y: scroll; background-color: var(--background-dim); margin-top: 0"><code>Server
Port 26744
StatsDb /var/corgi/stats.sqlite
Script stats
Path /opt/corgi/corgi-stats
Match
Regex ^/stats
Environment
CORGI_STATS_DB /var/corgi/stats.sqlite
Script git-backend
Path /usr/lib/git-core/git-http-backend
Match
Regex /.+/(info/refs|git-upload-pack)
Environment
GIT_HTTP_EXPORT_ALL 1
GIT_PROJECT_ROOT /srv/git
HOME /srv/git
HTTP_HOST git.dreamy.place
Script cgit
Path /opt/cgit/cgit
Environment
HTTP_HOST git.dreamy.place</code></pre>
|