echos-ocr/src/app/(dashboard)/settings
Randall Stillwell 028840a887 Add SFTP support: replace FTP-only TLS toggle with protocol selector
Dreamhost (and most modern hosts) use SFTP (port 22), not FTP (port 21).
The previous implementation only supported FTP/FTPS via basic-ftp, causing
timeouts when connecting to SFTP servers.

Changes:
- Add ssh2-sftp-client for SFTP connections
- Replace ftpTls boolean with ftpProtocol ("sftp" | "ftp" | "ftps") in schema
- Rewrite ftp-watcher.ts to support both SFTP and FTP/FTPS protocols
- Update UI with protocol dropdown that auto-switches the default port
- Add ssh2/ssh2-sftp-client to serverExternalPackages in next.config
- Default to SFTP on port 22

Made-with: Cursor
2026-04-17 15:12:54 -05:00
..
ai Add onboarding wizard, email verification, integration architecture, and settings restructure 2026-04-15 01:29:13 -05:00
forms Add dynamic fields, people directory, analytics, security hardening, and UX polish 2026-04-16 23:29:26 -05:00
general Add dynamic fields, people directory, analytics, security hardening, and UX polish 2026-04-16 23:29:26 -05:00
integrations Fix migration test issues: upload button, forgot password, IMAP, FTP UI, surveys nav, integration tests 2026-04-17 12:17:11 -05:00
locations Add onboarding wizard, email verification, integration architecture, and settings restructure 2026-04-15 01:29:13 -05:00
organization Add multi-workspace support with org switcher and open registration 2026-04-16 18:08:08 -05:00
upload-sources Add SFTP support: replace FTP-only TLS toggle with protocol selector 2026-04-17 15:12:54 -05:00
users Add team member management: role changes, member removal, invitation resend/revoke 2026-04-17 12:48:59 -05:00
layout.tsx Add dynamic fields, people directory, analytics, security hardening, and UX polish 2026-04-16 23:29:26 -05:00
page.tsx Add onboarding wizard, email verification, integration architecture, and settings restructure 2026-04-15 01:29:13 -05:00