Serve TMiO git repository
This commit is contained in:
parent
a8364e89e3
commit
90ca4d6098
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -30,9 +30,6 @@ with lib;
|
|||
};
|
||||
|
||||
users.users = (mkIf config.services.caddy.enable {
|
||||
caddy = {
|
||||
extraGroups = [ "syncthing" ];
|
||||
};
|
||||
syncthing = {
|
||||
homeMode = "750";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue