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

@ -60,9 +60,8 @@
};
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.firewall.allowedTCPPorts = [ 80 443 3000 ];
# Set your time zone.
time.timeZone = "America/Toronto";
@ -81,6 +80,7 @@
wget
curl
cifs-utils
caddy
taskchampion-sync-server
];
@ -193,12 +193,12 @@
services.caddy = {
enable = true;
virtualHosts = {
"media-server:3000".extraConfig = ''
reverse_proxy http://localhost:3000 {
header_down X-Real-IP {http.request.remote}
header_down X-Forwarded-For {http.request.remote}
}
"media-server" = {
serverAliases = [ "media-server" "media-server.local" ];
extraConfig = ''
reverse_proxy localhost:3000
'';
};
};
};