all repos — site @ 0abd7b8bd15855d557176993418438dfce3776a1

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