2023-11-12 20:45:02 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-02-03 14:57:00 +00:00
|
|
|
}: {
|
2023-11-14 17:44:46 +00:00
|
|
|
security.acme.certs = {
|
|
|
|
"benjaminbaedorf.eu" = {};
|
|
|
|
"b12f.io" = {};
|
2024-08-24 19:39:20 +00:00
|
|
|
"mezza.biz" = {};
|
2023-11-14 17:44:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts = {
|
2023-11-12 20:45:02 +00:00
|
|
|
"benjaminbaedorf.eu" = {
|
2023-11-14 17:44:46 +00:00
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = "benjaminbaedorf.eu";
|
|
|
|
locations."/".return = "302 https://b12f.io$request_uri";
|
2023-11-12 20:45:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
"b12f.io" = {
|
2023-11-14 17:44:46 +00:00
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = "b12f.io";
|
2023-11-12 20:45:02 +00:00
|
|
|
|
2023-11-14 17:44:46 +00:00
|
|
|
locations."/" = {
|
2024-02-03 14:57:00 +00:00
|
|
|
root = pkgs.b12f-io;
|
2023-11-14 17:44:46 +00:00
|
|
|
index = "index.html";
|
|
|
|
tryFiles = "$uri $uri/ =404";
|
|
|
|
};
|
2023-11-12 20:45:02 +00:00
|
|
|
};
|
2024-08-24 19:39:20 +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
|
|
|
};
|
|
|
|
}
|