machine-config/bert/services/http/index.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

2024-10-31 00:55:10 -05:00
{
imports = [
./0hats.com.nix
2025-01-14 18:06:19 -06:00
./bannergen.chandlerswift.com.nix
2024-11-04 19:20:49 -06:00
./files.chandlerswift.com.nix
2024-11-05 23:47:48 -06:00
./git.chandlerswift.com.nix
2024-11-12 00:47:23 -06:00
./harborpaperco.com.nix
2024-10-31 00:55:10 -05:00
./home.chandlerswift.com.nix
./isaacswift.com.nix
2024-11-06 00:00:51 -06:00
./katherineandchandler.com.nix
./lawrencedeerclub.chandlerswift.com.nix
2024-10-31 00:55:10 -05:00
./maps.chandlerswift.com.nix
2024-11-12 01:29:06 -06:00
./music.chandlerswift.com.nix
./preview.chandlerswift.com.nix
2024-10-31 00:55:10 -05:00
./stjohnscccc.org.nix
2024-11-05 23:32:46 -06:00
./swiftgang.net.nix
2025-01-14 23:12:25 -06:00
./whereis.chandlerswift.com.nix
2024-10-31 00:55:10 -05:00
];
services.caddy = {
enable = true;
email = "chandler@chandlerswift.com";
2024-10-31 01:50:48 -05:00
globalConfig = ''
servers {
metrics # Enable Prometheus monitoring
}
'';
virtualHosts.":80" = {
serverAliases = [":443"];
extraConfig = ''
header Content-Type text/html
respond <<EOF
<!DOCTYPE html>
<html>
<head>
<title>not found - chandlerswift.com</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>not found - chandlerswift.com</h1>
<p>This page is hosted with <a href="https://chandlerswift.com/">chandlerswift.com</a>,
but the site couldn't be found.</p>
</body>
</html>
EOF 404
'';
};
2024-10-31 00:55:10 -05:00
};
}