trying to get taskwarrior web to work nicely

This commit is contained in:
Matt Nish-Lapidus 2025-04-03 12:43:22 -04:00
parent 22da01cd7c
commit 7d7d6cca42
3 changed files with 10 additions and 8 deletions

View file

@ -12,6 +12,7 @@
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
btop btop
python3
]; ];
username = "media"; username = "media";

View file

@ -60,9 +60,8 @@
}; };
networking.hostName = "media-server"; # Define your hostname. networking.hostName = "media-server"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
networking.firewall.allowedTCPPorts = [ 80 443 3000 ];
# Set your time zone. # Set your time zone.
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";
@ -81,6 +80,7 @@
wget wget
curl curl
cifs-utils cifs-utils
caddy
taskchampion-sync-server taskchampion-sync-server
]; ];
@ -193,14 +193,14 @@
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
"media-server:3000".extraConfig = '' "media-server" = {
reverse_proxy http://localhost:3000 { serverAliases = [ "media-server" "media-server.local" ];
header_down X-Real-IP {http.request.remote} extraConfig = ''
header_down X-Forwarded-For {http.request.remote} reverse_proxy localhost:3000
}
''; '';
}; };
}; };
};
nixarr = { nixarr = {
enable = true; enable = true;

View file

@ -14,10 +14,11 @@
Type = "simple"; Type = "simple";
ExecStart = "/home/media/.local/bin/tww/taskwarrior-web"; ExecStart = "/home/media/.local/bin/tww/taskwarrior-web";
Restart = "always"; Restart = "always";
WorkingDirectory = "/home/media/.local/bin/tww/";
}; };
}; };
home.file.".local/bin/tww" = { home.file.".local/bin/tww" = {
source = ../../modules/home/tww; source = ./tww;
}; };
} }