Don't hardcode the website location
parent
de8714c89a
commit
e223895944
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue