ruspk

ruspk is a simple and fast synology reposetory server. It uses the existing database structure from spkrepo

Only the GET API for the synology devices is supported. You have to update the database your self.

Install

sh cargo install diesel_cli cargo install --feature postgres diesel migration --migration-dir migrations/postgres/ run echo 'export DATABASE_URL=postgresql://user:pass@localhost/dbname' > .env ruspk

Avaliable Features: mysql, postgres and sqlite

Test the API

```sh curl -sv 'http://127.0.0.1:8080/?build=24922&language=enu&major=6&micro=2&arch=x86&minor=2' | jq

```

Configuration (.env file)

```env RUSTLOG="actixweb=warn,diesel=warn" DATABASE_URL=file:db/database.sqlite

DATABASE_URL=mysql://user:pass@localhost/dbname

DATABASE_URL=postgresql://user:pass@localhost/dbname

LISTEN=127.0.0.1 PORT=80 ```

Guides

https://diesel.rs/

https://actix.rs/