host(koumakan): add verification domain

Changed files
+36 -1
systems
koumakan
services
static-sites
+1 -1
systems/koumakan/services/static-sites/default.nix
···
-
{ ... }:
{
imports = [
./assets.nix
./nonbunary.nix
./user.nix
+
./verification.nix
];
# Fallback site
+7
systems/koumakan/services/static-sites/verification-data/.well-known/microsoft-identity-association.json
···
+
{
+
"associatedApplications": [
+
{
+
"applicationId": "807b9c9e-69c9-4b9f-b020-01dbf256623b"
+
}
+
]
+
}
+20
systems/koumakan/services/static-sites/verification-data/index.html
···
+
<!doctype html>
+
<html lang="en">
+
<head>
+
<meta charset="utf-8" />
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
+
<title>publisher verification | soopy.moe</title>
+
<style>
+
:root {
+
font-family: monospace;
+
}
+
</style>
+
</head>
+
+
<body>
+
<h1>pub.soopy.moe</h1>
+
<p>welcome to <b>pub.soopy.moe</b>.</p>
+
<p>this is a verification domain for projects created and maintained by <a href="//soopy.moe">soopyc</a>.</p>
+
<p>you might have gotten here from an oauth application. if you have any questions about data handling, please contact soopyc via the link above.</p>
+
</body>
+
</html>
+8
systems/koumakan/services/static-sites/verification.nix
···
+
{ _utils, ... }:
+
{
+
services.nginx.virtualHosts = {
+
"pub.soopy.moe" = _utils.mkVhost {
+
locations."/".root = ./verification-data;
+
};
+
};
+
}