2023-04-08 18:49:31 -04:00
|
|
|
let
|
|
|
|
PROJECT_ROOT = builtins.toString ./.;
|
|
|
|
in
|
2023-04-07 11:09:21 -04:00
|
|
|
{
|
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"ewanick.com" = {
|
|
|
|
serverAliases = [ "www.ewanick.com" ];
|
|
|
|
extraConfig = ''
|
2023-04-08 18:49:31 -04:00
|
|
|
root * ${PROJECT_ROOT}/ewanick.com/
|
2023-04-07 11:09:21 -04:00
|
|
|
file_server
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|