Don't hardcode the website location
parent
de8714c89a
commit
e223895944
|
@ -1,3 +1,6 @@
|
||||||
|
let
|
||||||
|
PROJECT_ROOT = builtins.toString ./.;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -5,7 +8,7 @@
|
||||||
"ewanick.com" = {
|
"ewanick.com" = {
|
||||||
serverAliases = [ "www.ewanick.com" ];
|
serverAliases = [ "www.ewanick.com" ];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
root * /workspace/nixos-apps/ewanick.com/
|
root * ${PROJECT_ROOT}/ewanick.com/
|
||||||
file_server
|
file_server
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue