How vitalityv1nt/yandexdisk-dsm-app works
This Synology DSM package wraps the official Yandex Disk Linux client. The user sets up authorization and sync configuration over SSH; DSM service scripts manage the client, while the UI fetches status/log output and offers log clearing. Only the UI source was excerpted, so connections to service and CGI implementation are described only where the README or UI code supports them.
Main entry points: main.js DSM UI · yandex-disk Yandex Disk client · status.cgi Status endpoint · log.cgi Log endpoint
Components 14
Initial setup
- Client setup
- Sync configuration
Disk runtime
- Yandex Disk client
spk/package/yandex-disk - Service lifecycle
spk/scripts/start-stop-status - Log cleanup
spk/scripts/yandex-cleaner - Log handling
spk/scripts/yandex-logger
DSM interface
- DSM UI
spk/package/ui/main.js - Status endpoint
spk/package/ui/scripts/status.cgi - Log endpoint
spk/package/ui/scripts/log.cgi - Clear endpoint
spk/package/ui/scripts/clear_log.cgi - Status display
spk/package/ui/main.js - Log display
spk/package/ui/main.js
Other components
- NAS administrator
- Yandex Disk
Connections 12
- NAS administrator → Client setup: runs setup
README.md - Client setup → Sync configuration: writes settings
README.md - Service lifecycle → Yandex Disk client: manages service
- Yandex Disk client → Yandex Disk: syncs with
README.md - DSM UI → Status endpoint: fetches status
spk/package/ui/main.js - DSM UI → Log endpoint: fetches log
spk/package/ui/main.js - DSM UI → Clear endpoint: posts clear
spk/package/ui/main.js - Status endpoint → Status display: returns text
- Log endpoint → Log display: returns text
- Clear endpoint → Log handling: clears logs
- DSM UI → Status display: renders status
spk/package/ui/main.js - DSM UI → Log display: renders log
spk/package/ui/main.js