18 lines
458 B
Nix
18 lines
458 B
Nix
{pkgs, ...}: let
|
|
description = "A future blog powered running solely on Markdown files.";
|
|
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
|
|
HOST = "localhost";
|
|
PORT = 5567;
|
|
in {
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"ewanick.com" = {
|
|
serverAliases = ["www.ewanick.com"];
|
|
extraConfig = ''
|
|
reverse_proxy ${HOST}:${toString PORT}
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|