Switch from elm site to emanote
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
PROJECT_ROOT = builtins.toString ./.;
|
||||
PROJECT_ROOT = /workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com;
|
||||
PORT = "5567";
|
||||
HOST = "localhost";
|
||||
in
|
||||
{
|
||||
services.caddy = {
|
||||
@@ -8,10 +12,24 @@ in
|
||||
"ewanick.com" = {
|
||||
serverAliases = [ "www.ewanick.com" ];
|
||||
extraConfig = ''
|
||||
root * ${PROJECT_ROOT}/ewanick.com/
|
||||
file_server
|
||||
reverse_proxy ${HOST}:${PORT}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
ewanick-site = {
|
||||
enable = true;
|
||||
description = "The hakyll executable that rebuilds the site when a new blog post is created.";
|
||||
path = with pkgs; [
|
||||
nix
|
||||
git
|
||||
];
|
||||
script = ''
|
||||
cd ${PROJECT_ROOT}
|
||||
nix run github:srid/emanote -- run --port ${PORT} --host ${HOST}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user