Attempt to support gogs

Gogs claims to be an easy-to-use Git server and web frontend written in
golang. I'm eager to try it as an alternative to cgit.
This commit is contained in:
William Carroll 2020-03-10 23:06:03 +00:00
parent 73db632090
commit c23e263a9f

View file

@ -78,10 +78,20 @@ in {
##############################################################################
# Services
##############################################################################
services.openssh.enable = true;
services.lorri.enable = true;
systemd.services.gogs = {
enable = true;
description = "Easy-to-use Git server written in golang";
script = "${pkgs.gogs}/bin/gogs web";
serviceConfig = {
Type = "simple";
};
};
systemd.services.monzo-token-server = {
enable = true;
description = "Ensure my Monzo access token is valid";
@ -151,6 +161,13 @@ in {
# briefcase.learn as root.
root = /home/wpcarro/briefcase/learn/static;
};
"git.wpcarro.dev" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3000";
};
};
"blog.wpcarro.dev" = {
addSSL = true;
enableACME = true;