This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/tobru-ch/Caddyfile
Tobias Brunner f35aa2efad
All checks were successful
continuous-integration/drone/push Build is passing
add caddy to the mix for webfinger
an experiment
2022-11-23 17:52:18 +01:00

4 lines
590 B
Caddyfile

http://localhost:8080 {
header content-type "application/jrd+json; charset=utf-8"
respond "{\"subject\":\"acct:tobru@mstdn.social\",\"aliases\":[\"https://mstdn.social/@tobru\",\"https://mstdn.social/users/tobru\"],\"links\":[{\"rel\":\"http://webfinger.net/rel/profile-page\",\"type\":\"text/html\",\"href\":\"https://mstdn.social/@tobru\"},{\"rel\":\"self\",\"type\":\"application/activity+json\",\"href\":\"https://mstdn.social/users/tobru\"},{\"rel\":\"http://ostatus.org/schema/1.0/subscribe\",\"template\":\"https://mstdn.social/authorize_interaction?uri={uri}\"}]}"
}