Add fancyTypist.dev test Servant site
This commit is contained in:
parent
5c4ad7657b
commit
2d83fae67f
3 changed files with 22 additions and 1 deletions
1
nixos-apps/fancyTypist.dev
Submodule
1
nixos-apps/fancyTypist.dev
Submodule
|
|
@ -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…
Add table
Add a link
Reference in a new issue