redirect for /

This commit is contained in:
twoneis 2025-05-13 16:49:24 +02:00
parent 6135d4bebc
commit 56e8eb7d1f

View file

@ -5,30 +5,6 @@
}: let
inherit (lib) mkIf;
cfg = config.conf.website;
me = {
name = "mira";
pronouns = ["she/her/hers" "it/its/its"];
queer = ["trans" "lesbian"];
languages = {
german = 1.0;
english = 0.9;
dutch = 0.4;
spanish = 0.1;
};
i18n = {
timezone = "Europe/Amsterdam";
currency = "EUR";
location = "Netherlands";
};
contact = {
email = "hi@chpu.eu";
fedi = "@mira@fedi.twoneis.site";
};
ssh = {
id_ed25519 = "https://${cfg.domain.me}/ssh/id_ed25519.pub";
id_ed25519_sk = "https://${cfg.domain.me}/ssh/id_ed25519_sk.pub";
};
};
in
mkIf cfg.enable {
services.nginx.virtualHosts = {
@ -37,6 +13,9 @@ in
useACMEHost = cfg.domain.base;
forceSSL = true;
locations = {
"/" = {
return = "301 'https://${cfg.domain.me}/about.json'";
};
"/about.json" = {
return = "200 '${builtins.readFile ./about.json}'";
};