nix-config/hosts/Anton/caddy.nix
2024-11-22 08:27:30 +01:00

22 lines
448 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";
};
};
};
}