Skip to content

A lean and beautiful web SPA client for Sonolus servers

Notifications You must be signed in to change notification settings

Sonolus/sonolus-server-web

Repository files navigation

Sonolus Server Web

A lean and beautiful web SPA client for Sonolus servers, with multiple languages, server content showcase, and links to open content in Sonolus.

Links

Building

Install Dependencies

npm install

Generate I18n

npm generate-i18n

Customize

  • Edit .env
  • Edit public/favicon.ico
  • Edit public/thumbnail.png
  • Edit public/apple-touch-icon.png

Build for Production

npm run build

Deployment

Simply serve contents of dist under root of Sonolus server.

.env

VITE_BASE_URL

Must have trailing /.

VITE_WEB_AUTH

Enable web auth with VITE_WEB_AUTH=true.

Web Auth

To support web auth, server needs to implement the following endpoints:

POST /sonolus/web/authenticate/[hash]

Sonolus external authentication endpoint.

POST /sonolus/web/authenticate

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": ...
}

About

A lean and beautiful web SPA client for Sonolus servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published