2024-06-01 22:20:31 +03:00
|
|
|
{ inputs, packages, tools }:
|
2022-08-09 21:10:25 +03:00
|
|
|
with tools.vhosts;
|
|
|
|
let inherit (tools) domain; in
|
|
|
|
{
|
|
|
|
# websites
|
|
|
|
www = static packages.landing.webroot // { default = true; };
|
2022-08-29 00:13:28 +03:00
|
|
|
draw = static packages.excalidraw.webroot;
|
2024-06-01 22:20:31 +03:00
|
|
|
"docs.hyprspace" = static "${inputs.hyprspace.packages.docs}/share/www/hyprspace-docs";
|
2022-08-09 21:10:25 +03:00
|
|
|
|
|
|
|
# PSA sites
|
|
|
|
stop-using-nix-env = static packages.stop-using-nix-env.webroot;
|
|
|
|
|
|
|
|
whoami.locations = { # no tls
|
|
|
|
"/".return = ''200 "$remote_addr\n"'';
|
|
|
|
"/online".return = ''200 "CONNECTED_GLOBAL\n"'';
|
|
|
|
};
|
|
|
|
|
|
|
|
top-level = redirect "https://www.${domain}$request_uri" // { serverName = domain; };
|
|
|
|
}
|