Files
photoreport/infra/sftpgo/README.md
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

862 B

SFTPGo for camera uploads

Cameras (Canon R1/R3 FTP, Sony, Nikon) send to SFTPGo; SFTPGo writes into <INGEST_ROOT>/<login>/ and the PhotoReport worker picks the files up. SFTPGo has no users of its own: every login is checked by the API through the external authentication hook (/v1/sftpgo/auth), against the FTP logins and passwords made in the app.

  1. Install SFTPGo on the ingest container, start from sftpgo.json.example (upload_mode 1 writes to a temp name and renames when complete, so the worker never sees half a file).
  2. Set the same random key (24+ characters) in the hook URL and in apps/api/.env as SFTPGO_HOOK_KEY.
  3. Open FTP 21 and the passive range in the firewall; set force_passive_ip to the public address if behind NAT.
  4. In the app (Metadados -> Logins FTP), create a login per camera body; the password is shown once.