added api logic, vitest, minimal testing ui
This commit is contained in:
28
Caddyfile.dev
Normal file
28
Caddyfile.dev
Normal file
@@ -0,0 +1,28 @@
|
||||
# Caddyfile.dev — local development (HTTP only)
|
||||
{
|
||||
auto_https off
|
||||
admin off
|
||||
}
|
||||
|
||||
:80 {
|
||||
# Logs to stdout (handy in `docker compose logs caddy`)
|
||||
log {
|
||||
output stdout
|
||||
format console
|
||||
}
|
||||
|
||||
# Health-check / sanity page for the proxy itself
|
||||
respond / "caddy ok" 200
|
||||
|
||||
# Proxy API: strip /api prefix and forward to the api service on 8080
|
||||
handle_path /api/* {
|
||||
reverse_proxy api:8080
|
||||
}
|
||||
|
||||
# Helpful headers, even in dev
|
||||
header {
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user