Add fancyTypist.dev test Servant site
parent
5c4ad7657b
commit
2d83fae67f
|
@ -1,3 +1,6 @@
|
|||
[submodule "nixos-apps/cutesealfanpage.love"]
|
||||
path = nixos-apps/cutesealfanpage.love
|
||||
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
|
|
@ -1,3 +1,8 @@
|
|||
let
|
||||
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/fancytypist.dev";
|
||||
PORT = "12513";
|
||||
HOST = "localhost";
|
||||
in
|
||||
{
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
@ -19,9 +24,21 @@
|
|||
"fancytypist.dev" = {
|
||||
serverAliases = [ "www.fancytypist.dev" ];
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue