Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
28 lines
957 B
Caddyfile
28 lines
957 B
Caddyfile
# Reverse proxy for the `next` environment (Caddy obtains the certificates). Adjust the upstream addresses
|
|
# to the containers (docs/ARCHITECTURE.md, Infrastructure).
|
|
|
|
app.next.photoreport.pt {
|
|
# The SPA (static build in /var/www/photoreport-app/current); the engine's WASM needs its media type.
|
|
root * /var/www/photoreport-app/current
|
|
@wasm path *.wasm
|
|
header @wasm Content-Type application/wasm
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
|
|
api.next.photoreport.pt {
|
|
# REST, signed file URLs and Socket.io (/v1/realtime, websockets pass through).
|
|
reverse_proxy pr-api:3000
|
|
request_body {
|
|
# Chunks of resumable uploads are 4 MB; single-request uploads up to 200 MB.
|
|
max_size 210MB
|
|
}
|
|
}
|
|
|
|
# Public sites: every brand domain goes to the same Next.js server; the API picks the skin by domain.
|
|
next.photoreport.pt, shootyourmove.next.photoreport.pt, events.next.photoreport.pt {
|
|
reverse_proxy pr-site:3100 {
|
|
header_up X-Forwarded-Host {host}
|
|
}
|
|
}
|