Added personal website

This commit is contained in:
Aleksandr Lebedev 2025-10-22 20:06:56 +02:00
parent a2878180cf
commit ceb7ee5826
6 changed files with 42 additions and 1 deletions

View file

@ -51,6 +51,7 @@ in {
}) [
"kylekrein.com"
"*.kylekrein.com"
"alexanderlebedev.com"
];
};

View file

@ -2,6 +2,7 @@
lib,
pkgs,
config,
inputs,
...
}: let
matrixLocations = {
@ -94,6 +95,20 @@ in {
proxyWebsockets = true;
};
};
"alexanderlebedev.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
root = inputs.website.packages.${pkgs.system}.website;
extraConfig = ''
if ($request_uri ~ ^/(.*)\\.html(\?|$)) {
return 302 /$1$is_args$args;
}
try_files $uri $uri.html $uri/ =404;
'';
};
};
# https://github.com/NixOS/nixpkgs/issues/218878#issuecomment-2471223335
"collabora.kylekrein.com" = {
enableACME = true;