···
···
external-gw6 = "fe80::1";
18
-
# website-port = 3000;
19
-
# website-hostname = "wiro.world";
19
+
well-known-discord-dir = pkgs.writeTextDir ".well-known/discord" ''
20
+
dh=919234284ceb2aba439d15b9136073eb2308989b
22
+
webfinger-dir = pkgs.writeTextDir ".well-known/webfinger" ''
24
+
"subject": "acct:milo@wiro.world",
26
+
"mailto:milo@wiro.world",
27
+
"https://wiro.world/"
31
+
"rel": "http://wiro.world/rel/avatar",
32
+
"href": "https://wiro.world/logo.jpg",
33
+
"type": "image/jpeg"
36
+
"rel": "http://webfinger.net/rel/profile-page",
37
+
"href": "https://wiro.world/",
41
+
"rel": "http://openid.net/specs/connect/1.0/issuer",
42
+
"href": "https://auth.wiro.world"
47
+
website-hostname = "wiro.world";
pds-hostname = "pds.wiro.world";
···
122
-
# TODO: add webfinger
123
-
# https://willnorris.com/2023/caddy-snippets/#webfinger
125
-
# virtualHosts.${website-hostname}.extraConfig = ''
126
-
# reverse_proxy http://localhost:${toString website-port}
150
+
virtualHosts.${website-hostname}.extraConfig =
153
+
path /.well-known/discord
158
+
Access-Control-Allow-Origin "*"
159
+
X-Robots-Tag "noindex"
161
+
root ${well-known-discord-dir}
167
+
path /.well-known/webfinger
169
+
query resource=acct:milo@wiro.world
170
+
query resource=mailto:milo@wiro.world
171
+
query resource=https://wiro.world
172
+
query resource=https://wiro.world/
176
+
Content-Type "application/jrd+json"
177
+
Access-Control-Allow-Origin "*"
178
+
X-Robots-Tag "noindex"
180
+
root ${webfinger-dir}
185
+
reverse_proxy https://mrnossiom.github.io {
186
+
header_up Host {http.request.host}
virtualHosts.${grafana-hostname}.extraConfig = ''
reverse_proxy http://localhost:${toString grafana-port}