Kieran's opinionated (and probably slightly dumb) nix config

feat: add default caddy responses

dunkirk.sh 618af6f2 d7d8e6d0

verified
Changed files
+18
machines
prattle
terebithia
+9
machines/prattle/default.nix
···
}
'';
};
+
extraConfig = ''
+
# Default response for unhandled domains
+
:80 {
+
respond "404 - Looks like this pin is unobtainable" 404
+
}
+
:443 {
+
respond "404 - Looks like this pin is unobtainable" 404
+
}
+
'';
};
systemd.services.caddy.serviceConfig = {
+9
machines/terebithia/default.nix
···
globalConfig = ''
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
'';
+
extraConfig = ''
+
# Default response for unhandled domains
+
:80 {
+
respond "404 - Looks like this bridge doesn't have an end" 404
+
}
+
:443 {
+
respond "404 - Looks like this bridge doesn't have an end" 404
+
}
+
'';
};
systemd.services.caddy.serviceConfig = {