flocon/config/nixos/services/website.nix

22 lines
374 B
Nix
Raw Normal View History

2024-10-27 10:56:13 +00:00
{
inputs,
pkgs,
...
}: {
services.caddy.enable = true;
services.caddy.virtualHosts = {
"www.nezia.dev" = {
extraConfig = ''
redir https://nezia.dev{uri}
'';
};
"nezia.dev" = {
extraConfig = ''
2025-01-06 08:00:28 +00:00
root * ${inputs."nezia.dev".packages.${pkgs.system}.default}
2024-10-27 10:56:13 +00:00
file_server
encode gzip
'';
};
};
}