From 4ff2b2e6479f435f958b55504ff40e6098e9861a Mon Sep 17 00:00:00 2001 From: "8bit.lol" Date: Wed, 31 Dec 2025 12:15:27 +0000 Subject: [PATCH] Add AA route handling to example Caddyfile --- Caddyfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 4c61725..0468571 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,3 +1,13 @@ {$PDS_HOSTNAME}, *.{$PDS_HOSTNAME} { - reverse_proxy pds:8008 + # See https://gist.github.com/mary-ext/6e27b24a83838202908808ad528b3318#method-5-self-hosted-pds + handle /xrpc/app.bsky.ageassurance.getState { + header content-type "application/json" + header access-control-allow-headers "authorization,dpop,atproto-accept-labelers,atproto-proxy" + header access-control-allow-origin "*" + respond `{"state":{"lastInitiatedAt":"2025-07-14T14:22:43.912Z","status":"assured","access":"full"},"metadata":{"accountCreatedAt":"2022-11-17T00:35:16.391Z"}}` 200 + } + + handle { + reverse_proxy pds:8008 + } } -- 2.43.0