make demo site work out of the box

This commit is contained in:
Thomas Amland 2020-07-26 16:12:31 +02:00
parent e8b95e32ba
commit d46ba950e7
3 changed files with 7 additions and 7 deletions

View File

@ -22,10 +22,9 @@ Modern responsive web frontend for [Airsonic](https://github.com/airsonic/airson
https://airsonic.netlify.com
Use address/credentials for your own Airsonic server, or use the subsonic.org demo server:
- server: http://demo.subsonic.org
- username: guest1
- password guest
Password is `guest`.
You can use the URL and credentials for your own server if you prefer. **Note**: if your server is using http only you must allow mixed content in your browser otherwise login will not work.
## Build

View File

@ -1 +1,2 @@
/* /index.html 200
/api/* http://demo.subsonic.org/:splat 200
/* /index.html 200

View File

@ -8,8 +8,8 @@ export class AuthService {
private authenticated: boolean = false;
constructor() {
this.server = localStorage.getItem("server") || "";
this.username = localStorage.getItem("username") || "";
this.server = localStorage.getItem("server") || "/api";
this.username = localStorage.getItem("username") || "guest1";
this.password = localStorage.getItem("password") || "";
}