Files
nix/hosts/server/modules/Caddyfile
2026-03-07 10:49:33 +02:00

61 lines
3.5 KiB
Caddyfile
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@favicon path /favicon.ico
handle @favicon {
root * /lib/system-utdr-assets
rewrite * /tenna.ico
header Content-Type "image/vnd.microsoft.icon" # <-- microslop
file_server
}
@root path /
handle @root {
header Content-Type "text/plain; charset=utf-8"
respond "
This is an AT Protocol Personal Data Server (aka, an atproto PDS)
Most API routes are under /xrpc/
Code: https://github.com/bluesky-social/atproto
Self-Host: https://github.com/bluesky-social/pds
Protocol: https://atproto.com
" 200
}
@robots path /robots.txt
handle @robots {
header Content-Type "text/plain; charset=utf-8"
respond "User-agent: *
Disallow: /
" 200
}
handle {
reverse_proxy localhost:3000 {
header_up Host castletown.darkworld.download
}
}