add taskchampion-sync-server on genepi
This commit is contained in:
15
hosts/genepi/taskchampion.nix
Normal file
15
hosts/genepi/taskchampion.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
domain = "home.rpqt.fr";
|
||||
subdomain = "tw.${domain}";
|
||||
in
|
||||
{
|
||||
services.taskchampion-sync-server.enable = true;
|
||||
|
||||
services.nginx.virtualHosts.${subdomain} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
locations."/".proxyPass =
|
||||
"http://127.0.0.1:${toString config.services.taskchampion-sync-server.port}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user