A lean and beautiful web SPA client for Sonolus servers, with multiple languages, server content showcase, and links to open content in Sonolus.
npm install
npm generate-i18n
- Edit
.env - Edit
public/favicon.ico - Edit
public/thumbnail.png - Edit
public/apple-touch-icon.png
npm run build
Simply serve contents of dist under root of Sonolus server.
Must have trailing /.
Enable web auth with VITE_WEB_AUTH=true.
To support web auth, server needs to implement the following endpoints:
Sonolus external authentication endpoint.
Request body:
{
"key": "..."
}Server should calculate SHA1 digest of key, and respond if the corresponding external authentication is found.
Response body:
{
"title": "User#1234",
"session": "...",
"expiration": ...
}