homefree/profiles/hosting.nix
2024-01-14 01:12:45 -08:00

26 lines
441 B
Nix

{ pkgs, ... }:
{
imports = [
../apps/radicale.nix
];
services.caddy = {
enable = true;
## reload config while running instead of restarting. true by default.
enableReload = true;
virtualHosts."localhost" = {
extraConfig = ''
respond "Hello, my world!"
'';
};
virtualHosts."http://radicale.homefree.lan" = {
extraConfig = ''
reverse_proxy :5232
'';
};
};
}