petersweb-infra/nixos/caddy.nix

19 lines
267 B
Nix
Raw Normal View History

2024-12-24 02:49:21 -09:00
{
lib,
pkgs,
config,
...
}: {
services.caddy = {
enable = true;
2024-12-24 02:52:46 -09:00
virtualHosts."mainframe.philippeterson.com" = {
2024-12-24 02:49:21 -09:00
extraConfig = ''
respond "Hello, world!"
'';
2024-12-24 02:54:55 -09:00
listenAddresses = [
"0.0.0.0:9091"
];
2024-12-24 02:49:21 -09:00
};
};
}