1
1
Fork 0

Don't hardcode the website location

main
Bill Ewanick 2023-04-08 18:49:31 -04:00
parent de8714c89a
commit e223895944
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
let
PROJECT_ROOT = builtins.toString ./.;
in
{
services.caddy = {
enable = true;
@ -5,7 +8,7 @@
"ewanick.com" = {
serverAliases = [ "www.ewanick.com" ];
extraConfig = ''
root * /workspace/nixos-apps/ewanick.com/
root * ${PROJECT_ROOT}/ewanick.com/
file_server
'';
};