diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 461b80c..c6fe958 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -34,11 +34,54 @@ www.{$HOST:localhost} { redir https://{$HOST:localhost}{uri} } -{$DONG:dong-zip.localhost} { +http://dongs.zip { + redir https://dongs.zip{uri} +} + +https://dongs.zip { log dong { output stdout format console } + + # atproto thing + handle /.well-known/atproto-did { + header Access-Control-Allow-Origin "*" + respond "did:web:dongs.zip" + } + + handle /.well-known/did.json { + header Content-Type "application/json" + header Access-Control-Allow-Origin "*" + respond <