1
1
Fork 0

Add fancyTypist.dev test Servant site

main
Bill Ewanick 2023-10-08 12:13:38 -04:00
parent 5c4ad7657b
commit 2d83fae67f
3 changed files with 22 additions and 1 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "nixos-apps/cutesealfanpage.love"] [submodule "nixos-apps/cutesealfanpage.love"]
path = nixos-apps/cutesealfanpage.love path = nixos-apps/cutesealfanpage.love
url = gitea@git.ewanick.com:bill/seal-blog.git url = gitea@git.ewanick.com:bill/seal-blog.git
[submodule "nixos-apps/fancyTypist.dev"]
path = nixos-apps/fancyTypist.dev
url = gitea@git.ewanick.com:bill/fancyTypist.dev.git

@ -0,0 +1 @@
Subproject commit 1cd499efa18470f4f1a9caa4033265c93bb5942b

View File

@ -1,3 +1,8 @@
let
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/fancytypist.dev";
PORT = "12513";
HOST = "localhost";
in
{ {
services.caddy = { services.caddy = {
enable = true; enable = true;
@ -19,9 +24,21 @@
"fancytypist.dev" = { "fancytypist.dev" = {
serverAliases = [ "www.fancytypist.dev" ]; serverAliases = [ "www.fancytypist.dev" ];
extraConfig = '' extraConfig = ''
respond "Hello, world! fancytypist.dev" reverse_proxy ${HOST}:${PORT}
''; '';
}; };
}; };
}; };
systemd.services = {
fancyTypist.dev-site = {
enable = true;
description = "The Haskell Servant executable server that hosts my FancyTypist.dev site.";
path = with pkgs; [ nix git ];
script = ''
cd ${PROJECT_ROOT}
nix run .#fancyTypist.dev-site
'';
};
};
} }