os/hosts/frikandel/website.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
767 B
Nix
Raw Normal View History

2023-11-12 20:45:02 +00:00
{
pkgs,
lib,
...
}: {
security.acme.certs = {
"benjaminbaedorf.eu" = {};
"b12f.io" = {};
"mezza.biz" = {};
};
services.nginx.virtualHosts = {
2023-11-12 20:45:02 +00:00
"benjaminbaedorf.eu" = {
forceSSL = true;
useACMEHost = "benjaminbaedorf.eu";
locations."/".return = "302 https://b12f.io$request_uri";
2023-11-12 20:45:02 +00:00
};
"b12f.io" = {
forceSSL = true;
useACMEHost = "b12f.io";
2023-11-12 20:45:02 +00:00
locations."/" = {
root = pkgs.b12f-io;
index = "index.html";
tryFiles = "$uri $uri/ =404";
};
2023-11-12 20:45:02 +00:00
};
"mezza.biz" = {
forceSSL = true;
useACMEHost = "mezza.biz";
locations."/" = {
root = pkgs.mezza-biz;
index = "index.html";
tryFiles = "$uri $uri/ =404";
};
};
2023-11-12 20:45:02 +00:00
};
}