Files
owncast/test/automated/activitypub/Caddyfile
T
Gabe KangasandGitHub b0fc8260d9 ActivityPub integration test (#4761)
* feat(test): add an end-to-end ActivityPub integration test

* chore(ci): run AP integration test under CI

* feat(test): use caddy instead of home built reverse proxy

* fix(test): fix linter warnings

* chore(test): don't commit test self-signed certs I suppose

* chore(test): more shellcheck linter warnings

* fix: fix test setup under CI
2026-01-21 22:33:55 -08:00

36 lines
677 B
Caddyfile

# Caddyfile for ActivityPub federation testing
# Routes requests to owncast.local and snac.local to their respective backends
{
# Disable automatic HTTPS since we use mkcert certificates
auto_https off
# Disable admin API
admin off
# Suppress logging
log {
level error
}
}
# HTTPS listener using mkcert certificates
https://:{$PROXY_PORT} {
tls {$CERT_FILE} {$KEY_FILE}
# Route based on Host header
@owncast host owncast.local
@snac host snac.local
handle @owncast {
reverse_proxy localhost:{$OWNCAST_PORT}
}
handle @snac {
reverse_proxy localhost:{$SNAC_PORT}
}
# Default: return error for unknown hosts
handle {
respond "Unknown host" 404
}
}