Files
AvianVisitors/avian/caddy/avian.caddy
T
Twarner491 d0ad1454c4 AvianVisitors: BirdNET-Pi collage frontend overlay
Adds avian/ on top of upstream BirdNET-Pi:
- frontend/    static collage UI (mask-packed bird tiles, sized by detection count)
- assets/      ~450 bundled kachō-e illustrations + cutouts + binary masks
- api/         PHP shims for recent/lifelist/firstseen/timeseries JSON
- scripts/     installer + Gemini pregen + editable prompt template
- caddy/       snippet mounting /collage on existing Caddy
- forwarding/  optional HA / MQTT / Cloudflare configs

Default install: http://birdnet.local/collage/ with no auth.

Upstream BirdNET-Pi README preserved at README.upstream.md.
2026-05-28 10:14:25 -07:00

38 lines
1.1 KiB
Plaintext

# AvianVisitors — Caddy snippet.
# Drop into /etc/caddy/conf.d/ and add `import /etc/caddy/conf.d/*.caddy`
# to the main Caddyfile (the installer does this for you).
#
# Default: serves the collage locally at http://birdnet.local/collage/
# with no auth. For the optional Cloudflare/HA forwarded deployment,
# see ../forwarding/.
(avian_common) {
# CORS — collage is a single-origin static app; loose for the JSON
# endpoints so HA dashboards etc. can read them.
@json path /api/*.json
header @json {
Access-Control-Allow-Origin "*"
Cache-Control "no-cache"
}
}
# Frontend lives at http://birdnet.local/collage/
http://birdnet.local {
import avian_common
# Static collage UI
handle_path /collage/* {
root * /var/www/avian
file_server
}
redir /collage /collage/
# PHP shims for recent.json / lifelist.json / firstseen.json /
# timeseries.json — served from BirdNET-Pi's existing PHP root.
handle_path /api/* {
root * /home/monalisa/BirdSongs/Extracted
php_fastcgi unix//run/php/php8.2-fpm.sock
file_server
}
}