diff --git a/docs/customservices.md b/docs/customservices.md index c1f0812..a6afb12 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -48,6 +48,7 @@ within Homer: - [rTorrent](#rtorrent) - [SABnzbd](#sabnzbd) - [Scrutiny](#scrutiny) +- [SFTPGo](#sftpgo) - [Speedtest Tracker](#speedtesttracker) - [Tautulli](#tautulli) - [Tdarr](#tdarr) @@ -646,6 +647,20 @@ This service displays info about the total number of disk passed and failed S.M. updateInterval: 5000 # (Optional) Interval (in ms) for updating the status ``` +## SFTPGo + +This service displays a version string instead of a subtitle. +And this service display the number of active connections is hidden on small screen. +The indicator shows SFTPGo is online, offline. Example configuration: + +```yaml +- name: "SFTPGO container" + type: "SFTPGo" + logo: assets/tools/sample.png + url: http://sftp-go.example.com + sftpgo_api_key: "hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha" +``` + ## SpeedtestTracker This service will show the download and upload speeds in Mbit/s and the ping in ms. diff --git a/dummy-data/sftpgo/api/v2/connections b/dummy-data/sftpgo/api/v2/connections new file mode 100644 index 0000000..8c30f6a --- /dev/null +++ b/dummy-data/sftpgo/api/v2/connections @@ -0,0 +1,22 @@ +[ + { + "username": "test", + "connection_id": "SFTP_94f5b2b9f379173fa9cd0b8a836a7f40d860e4299e167793722d1e957a94e4d2_1", + "client_version": "SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.13", + "remote_address": "192.168.1.15:37616", + "connection_time": 1751462552179, + "last_activity": 1751462552179, + "current_time": 1751462680531, + "protocol": "SFTP" + }, + { + "username": "test", + "connection_id": "SFTP_f50a640bded5f2dda3f9861b0f73c1d9220fe65da1de1bbb5c549618221a6455_1", + "client_version": "SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.13", + "remote_address": "192.168.1.15:37680", + "connection_time": 1751462590652, + "last_activity": 1751462590652, + "current_time": 1751462680531, + "protocol": "SFTP" + } +] diff --git a/dummy-data/sftpgo/api/v2/version b/dummy-data/sftpgo/api/v2/version new file mode 100644 index 0000000..6602f7a --- /dev/null +++ b/dummy-data/sftpgo/api/v2/version @@ -0,0 +1,17 @@ +{ + "version": "2.6.6", + "build_date": "2025-02-24T18:47:26Z", + "commit_hash": "6825db76", + "features": [ + "+metrics", + "+azblob", + "+gcs", + "+s3", + "+bolt", + "+mysql", + "+pgsql", + "+sqlite", + "+unixcrypt", + "+portable" + ] +} diff --git a/src/components/services/Sftpgo.vue b/src/components/services/Sftpgo.vue new file mode 100644 index 0000000..5d142b3 --- /dev/null +++ b/src/components/services/Sftpgo.vue @@ -0,0 +1,107 @@ + + + + +