Services

Caddy Www Academy Path


Caddy Www Academy Path

Source: docs/infrastructure/caddy-www-academy-path.caddy

1
# Reference: path-based academy on the unified www dev host (Next.js basePath: /academy, port 3044).
2
# Merge into the `www.assistance.dev.assistance.bg` site block on the proxy (BA/registry Caddyfile),
3
# *before* the catch-all that sends everything to www :3040.
4
#
5
# Use the real LAN hostname/IP of the machine running `pnpm dev` / academy (see DEVELOPER.md).
6
# Do NOT use handle_path /academy* here — stripping /academy breaks the academy Next.js basePath
7
# contract and will 404 HTML and /academy/_next/* assets.
8
9
@academy_path path /academy /academy/*
10
handle @academy_path {
11
reverse_proxy suse-10.lan.assistance.bg:3044 {
12
import svc_proxy
13
}
14
}