Files
photoreport/infra/proxy/Caddyfile.example
sparkandClaude Opus 5.5 d074707f51
ci / rust (push) Successful in 7m7s
ci / typescript (push) Successful in 7m50s
docs(infra): example reverse proxy (Caddy) and SFTPGo configuration
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 23:02:12 +01:00

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}
}
}