Simple Api Server implementation for rustdesk.
- Autenticate user
- Store user's address book
.Net 7.0, can run on Windows, Linux and MacOS
- The
appsettings.jsonfile is used to store user's login/password. You can add additional users in the Users section:
"Users": [
{
"Login": "user",
"Password": "123456"
}
]- The user's address book uses embedded LiteDB database with an automatically generated
api.dbfile. - Installed service avaliable on port 34567. Default port can be changed in
appsettings.jsonfile:
"urls": "http://0.0.0.0:34567"- Install .Net 7.0 SDK on build machine (Linux, WIndows or MacOS)
- Run
dotnet publish -c Release -f "net7.0" -o ./publish ./RustDeskApi.csproj - Install .Net 7.0 ASP.NET Core Runtime on target machine
- Copy publish directory to the target machine, default path is
/var/rustdeskapi. If you uses another directory change path inrustdeskapi.servicefile. - Run
sudo install.sh
Bash script will install and configure rustdeskapi.service in systemd.
- Build
docker build -f ./Dockerfile -t rustdeskapi . - Run
docker run -d -p 34567:34567 --name rustdeskapi rustdeskapi
The software released under the terms of the MIT license.