You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Agatha Lovelace ba37df30c1
Remove unnecessary axum-auth dependancy
2 months ago
.github/workflows Package for Nix 2 months ago
src Remove unnecessary axum-auth dependancy 2 months ago
.envrc Package for Nix 2 months ago
.gitignore Package for Nix 2 months ago
Cargo.lock Remove unnecessary axum-auth dependancy 2 months ago
Cargo.toml Remove unnecessary axum-auth dependancy 2 months ago
README.md Add README 8 months ago
default.nix Package for Nix 2 months ago
flake.lock Package for Nix 2 months ago
flake.nix Package for Nix 2 months ago
shell.nix Package for Nix 2 months ago

README.md

Eleanor Server

A HTTP remote media server for the Eleanor music player.

Usage (command line)

  • Setup:

    1. Run the eleanor-server executable; exit
    2. Edit the settings.toml file. Example:
    port = 8008
    
    [[sources]]
    id = 0
    path = "/home/agatha/Music/local/"
    
     Add user(s) using the `user` subcommand 
     Start the server again 
    
    
  • Adding a user:

    ./eleanor-server user add username password
    
  • Removing a user:

    ./eleanor-server user remove username 
    
    
    

REST API Implementation

GET / → A binary messagepack-encoded list of tracks indexed by the server
POST / → Starts a full reindex by the server
GET /:hash → Responds with the requested song's audio file (hash can be obtained from the index)
GET /:hash/cover → Responds with the album art attached to the requested song's file

All endpoints require HTTP Basic Auth using credentials of any formerly added user.