nix-config/hosts/Anton/caddy.nix
2025-01-07 23:28:53 +01:00

22 lines
442 B
Nix

{ pkgs, ... }:
{
services.caddy = {
enable = true;
virtualHosts = {
"https://git.huwe.mooo.com" = {
extraConfig = "reverse_proxy localhost:3000";
};
"https://files.huwe.mooo.com" = {
extraConfig = ''
root * /var/www/file_server
file_server
'';
};
"https://cal.huwe.mooo.com" = {
extraConfig = "reverse_proxy localhost:5232";
};
};
};
}