Serve TMiO git repository

This commit is contained in:
TEC 2024-01-10 02:25:18 +08:00
parent a8364e89e3
commit 90ca4d6098
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
2 changed files with 17 additions and 3 deletions

View File

@ -37,6 +37,17 @@ In future, the following may be set up too:
+ Kopia (backups)
+ Koel (music streaming)
"
'';
virtualHosts."blog.tecosaur.net".extraConfig = ''
redir /tmio /tmio/
handle_path /tmio/* {
file_server {
fs git /var/lib/gitea/repositories/tec/this-month-in-org.git html
}
}
handle {
respond 404
}
'';
}
(mkIf config.services.syncthing.enable {
@ -91,4 +102,10 @@ handle {
'';
})
];
users.users.caddy = {
extraGroups =
lib.optional config.services.syncthing.enable "syncthing" ++
lib.optional config.services.gitea.enable "gitea";
};
}

View File

@ -30,9 +30,6 @@ with lib;
};
users.users = (mkIf config.services.caddy.enable {
caddy = {
extraGroups = [ "syncthing" ];
};
syncthing = {
homeMode = "750";
};