-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ config/currentCreds.json | |
config/maloja.json | ||
config/spotify.json | ||
config/config.json | ||
/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Minimal Configuration | ||
|
||
Examples assume you have registered a Spotify application with the default callback url of `http://localhost:9078/callback`. | ||
|
||
If you use another callback url or domain name you will need to specify at a minimum `SPOTIFY_REDIRECT_URI`. | ||
|
||
## Using Environmental Variables | ||
|
||
### Local | ||
``` | ||
SPOTIFY_CLIENT_ID=yourId SPOTIFY_CLIENT_SECRET=yourSecret MALOJA_URL=http://domain.tld MALOJA_API_KEY=1234 node index.js | ||
``` | ||
|
||
### Dockerhub | ||
|
||
Note: I do not recommend running a container without a `config` volume specified or you will need to reauthorize the app everytime the container is rebuilt. | ||
|
||
``` | ||
docker run -e "SPOTIFY_CLIENT_ID=yourId" -e "SPOTIFY_CLIENT_SECRET=yourSecret" -e "MALOJA_URL=http://domain.tld" -e "MALOJA_API_KEY=1234" foxxmd/spotify-scrobbler | ||
``` | ||
|
||
## Using Configuration | ||
|
||
Reference the [example json configs.](https://github.com/FoxxMD/spotify-scrobbler/tree/master/config) | ||
|
||
### Local | ||
|
||
``` | ||
node index.js | ||
``` | ||
|
||
### Docker | ||
|
||
``` | ||
docker run -v /path/on/host/config:/home/node/app/config foxxmd/spotify-scrobbler | ||
``` |