summaryrefslogtreecommitdiff
path: root/caddy/etc
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-12-04 17:08:22 +0000
committerBrad Clawsie <brad@b7j0c.org>2026-12-04 17:08:22 +0000
commit9282c414626ba04b1c4d09ae60a3170942c9a48a (patch)
tree76892a5625201fcfeeb7749b7ad57fe081d9e211 /caddy/etc
parent1c13732b2cc5bacd8d3aaf48c237f0812a11b7c2 (diff)
Diffstat (limited to 'caddy/etc')
-rw-r--r--caddy/etc/cgitrc49
-rw-r--r--caddy/etc/systemd/system/fcgiwrap.service.d/override.conf21
-rw-r--r--caddy/etc/systemd/system/fcgiwrap.socket.d/override.conf4
3 files changed, 74 insertions, 0 deletions
diff --git a/caddy/etc/cgitrc b/caddy/etc/cgitrc
new file mode 100644
index 0000000..885328d
--- /dev/null
+++ b/caddy/etc/cgitrc
@@ -0,0 +1,49 @@
+root-title=b7j0c.org
+root-desc=Personal Git repositories
+
+css=/cgit.css
+logo=/cgit.png
+favicon=/favicon.ico
+virtual-root=/
+
+cache-size=0
+enable-http-clone=1
+enable-index-links=1
+enable-commit-graph=1
+enable-git-config=0
+enable-filter-overrides=0
+
+clone-url=https://git.b7j0c.org/$CGIT_REPO_URL
+
+repo.url=dotfiles-public
+repo.path=/srv/git/dotfiles-public
+repo.desc=Public dotfiles
+
+repo.url=r100
+repo.path=/srv/git/r100
+repo.desc=100 Rust exercises
+
+repo.url=awsv4-cpp
+repo.path=/srv/git/awsv4-cpp
+repo.desc=AWS Signature Version 4 implementation in C++
+
+repo.url=Hash-Consistent
+repo.path=/srv/git/Hash-Consistent
+repo.desc=Raku implementation of a consistent hash
+
+repo.url=Subsets-Common
+repo.path=/srv/git/Subsets-Common
+repo.desc=Useful Raku subsets
+
+repo.url=Net-IP-Parse
+repo.path=/srv/git/Net-IP-Parse
+repo.desc=IPv4 and v6 types for Raku
+
+repo.url=Webservice-AWS-Auth-V4
+repo.path=/srv/git/Webservice-AWS-Auth-V4
+repo.desc=AWS V4 authentication in Raku
+
+repo.url=Lang-Go-Mod
+repo.path=/srv/git/Lang-Go-Mod
+repo.desc=Parse Go .mod files in Perl
+
diff --git a/caddy/etc/systemd/system/fcgiwrap.service.d/override.conf b/caddy/etc/systemd/system/fcgiwrap.service.d/override.conf
new file mode 100644
index 0000000..ab23e98
--- /dev/null
+++ b/caddy/etc/systemd/system/fcgiwrap.service.d/override.conf
@@ -0,0 +1,21 @@
+[Service]
+User=cgit
+Group=cgit
+
+NoNewPrivileges=yes
+ProtectSystem=strict
+ProtectHome=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+ProtectKernelLogs=yes
+ProtectControlGroups=yes
+ProtectClock=yes
+PrivateTmp=yes
+PrivateDevices=yes
+RestrictSUIDSGID=yes
+RestrictNamespaces=yes
+RestrictAddressFamilies=AF_UNIX
+CapabilityBoundingSet=
+
+ReadOnlyPaths=/srv/git
+InaccessiblePaths=/srv/git/notes /srv/git/pass /srv/git/xylabs
diff --git a/caddy/etc/systemd/system/fcgiwrap.socket.d/override.conf b/caddy/etc/systemd/system/fcgiwrap.socket.d/override.conf
new file mode 100644
index 0000000..7b25f04
--- /dev/null
+++ b/caddy/etc/systemd/system/fcgiwrap.socket.d/override.conf
@@ -0,0 +1,4 @@
+[Socket]
+SocketUser=cgit
+SocketGroup=caddy
+SocketMode=0660