# Caddyfile for the AI proxy host.
#
# Replace the site address with the DNS name you point at this server (for
# example ai.skate-spots.org). Caddy obtains a Let's Encrypt certificate
# automatically via the HTTP-01 challenge, so ports 80 and 443 must be reachable
# from the internet (open them in the provider firewall too, not just ufw).
#
# Install + run:
#   sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
#   curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
#   curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
#   sudo apt update && sudo apt install -y caddy
#   sudo cp Caddyfile /etc/caddy/Caddyfile && sudo systemctl reload caddy

ai.skate-spots.org {
	encode gzip
	reverse_proxy 127.0.0.1:8787
}
