Compare commits
1 commit
c10a3036c8
...
83a6138541
Author | SHA1 | Date | |
---|---|---|---|
Chandler Swift | 83a6138541 |
|
@ -23,5 +23,30 @@
|
|||
metrics # Enable Prometheus monitoring
|
||||
}
|
||||
'';
|
||||
virtualHosts.":80" = {
|
||||
serverAliases = [":443"];
|
||||
extraConfig = ''
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
|
||||
{
|
||||
services.caddy.virtualHosts."swiftgang.net".extraConfig = ''
|
||||
# GoDaddy can't do flattening to apply a CNAME to an apex record. So we use
|
||||
# their "forwarding" (redirect-as-a-service) to redirect to www.…, which we
|
||||
# _can_ CNAME.
|
||||
services.caddy.virtualHosts."www.swiftgang.net".extraConfig = ''
|
||||
encode zstd gzip
|
||||
file_server
|
||||
root * /srv/www/swiftgang.net
|
||||
|
|
Loading…
Reference in a new issue