On 2026-01-24 08:34, [email protected] wrote:
Hello,
I have been trying to host a web site on a spare computer using Guix System, which has been pretty straightforward and easy! I thought I'd challenge myself and try to set up git hosting on the same machine, and that is going a little less smoothly... I was hoping someone could point me in the right direction.

Most of my configuration so far has been based on whatever I could glean from the Guix manual and the explanations in this helpful blog post by Karl Hallsby: https://raven.hallsby.com/running-your-website-using-guix-system.html

but... the cgit service isn't cooperating at all, and my knowledge is not good enough to troubleshoot what's going wrong. I can run the nginx service for my main web site, or the cgit service, but not both at the same time. I've attached what my services look like in the main configuration file (I replace "website" with my domain when I want to test it). Does anyone know what could be the problem?

Thank you.

An update from me: the regular web content and cgit+gitolite are working together, finally. After a few days of hacking around, it was indeed the missing line `(try-files (list "$uri" "@cgit"))` which was the culprit... Adding it as well as changing the lone `nginx-named-location-configuration` to `nginx-location-configuration` with `(uri "@cgit")` got everything fixed up. A huge help was one of David Thompson's configurations where he seemed to be doing the exact same thing I wanted to do. I would recommend anyone having trouble with something like this in future browse through this machine config "takemi.scm" here: https://git.dthompson.us/guix-config/tree/dthompson/machines/takemi.scm

Thank you to everyone who responded. Ciao!

Reply via email to