···
···
external-gw6 = "fe80::1";
+
well-known-discord-dir = pkgs.writeTextDir ".well-known/discord" ''
+
dh=919234284ceb2aba439d15b9136073eb2308989b
+
webfinger-dir = pkgs.writeTextDir ".well-known/webfinger" ''
+
"subject": "acct:milo@wiro.world",
+
"mailto:milo@wiro.world",
+
"rel": "http://wiro.world/rel/avatar",
+
"href": "https://wiro.world/logo.jpg",
+
"rel": "http://webfinger.net/rel/profile-page",
+
"href": "https://wiro.world/",
+
"rel": "http://openid.net/specs/connect/1.0/issuer",
+
"href": "https://auth.wiro.world"
+
website-hostname = "wiro.world";
pds-hostname = "pds.wiro.world";
···
+
virtualHosts.${website-hostname}.extraConfig =
+
path /.well-known/discord
+
Access-Control-Allow-Origin "*"
+
root ${well-known-discord-dir}
+
path /.well-known/webfinger
+
query resource=acct:milo@wiro.world
+
query resource=mailto:milo@wiro.world
+
query resource=https://wiro.world
+
query resource=https://wiro.world/
+
Content-Type "application/jrd+json"
+
Access-Control-Allow-Origin "*"
+
reverse_proxy https://mrnossiom.github.io {
+
header_up Host {http.request.host}
virtualHosts.${grafana-hostname}.extraConfig = ''
reverse_proxy http://localhost:${toString grafana-port}