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 = { 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
''; '';
}; };