Emanote hack
parent
dc3ecc2d41
commit
54a9a3eb1c
|
@ -1,4 +1,4 @@
|
|||
{ emanote, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
|
||||
|
@ -22,9 +22,10 @@ in
|
|||
ewanick-site = {
|
||||
enable = true;
|
||||
description = "A blog powered by Emanote running solely on Markdown files.";
|
||||
path = [ emanote ];
|
||||
path = with pkgs; [ nix git ];
|
||||
script = ''
|
||||
cd ${PROJECT_ROOT}
|
||||
nix profile install github:srid/emanote
|
||||
emanote run \
|
||||
--port ${PORT} \
|
||||
--host ${HOST}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
let
|
||||
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/fancyTypist.dev";
|
||||
PORT = "12513";
|
||||
HOST = "localhost";
|
||||
PORT = 12513;
|
||||
in
|
||||
{
|
||||
services.caddy = {
|
||||
|
@ -38,7 +38,7 @@ in
|
|||
"fancytypist.dev" = {
|
||||
serverAliases = [ "www.fancytypist.dev" ];
|
||||
extraConfig = ''
|
||||
reverse_proxy ${HOST}:${PORT}
|
||||
reverse_proxy ${HOST}:${toString PORT}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue