all repos — site @ c53eb9f1b57d46b6f6b5365c582536613509cb2f

source for my site, found at icyphox.sh

bin/old/webfinger.sh (view raw)

 1#!/bin/sh
 2# creates '.well-known/host-meta'
 3
 4well_known="build/.well-known"
 5host_meta="host-meta"
 6mkdir -p "$well_known"
 7touch "$well_known/$host_meta"
 8
 9cat << EOF > "$well_known/$host_meta"
10<?xml version="1.0" encoding="UTF-8"?>
11<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
12  <Link rel="lrdd" type="application/xrd+xml" template="https://toot.icyphox.sh/.well-known/webfinger?resource={uri}"/>
13</XRD>
14EOF