redirect for /
This commit is contained in:
parent
6135d4bebc
commit
56e8eb7d1f
1 changed files with 3 additions and 24 deletions
|
@ -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}'";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue