your_spotify

your_spotify

your_spotify is a web app that shows you statistics about your Spotify usage.

You can find out more in the video.

The installation takes place in 3 steps:

  • Database
  • Server
  • Web Client

docker run -d --name mongo \
-v /volume1/docker/your_spotify_db:/data/db \
--restart always \
mongo:4.4.13

With Synology you should be careful to use a 4.4.x version of the Mongo DB because 5.x is not compatible with the CPU of the device (maybe with newer devices this isn’t the case anymore).

docker run -d --name=your_spotify_server \
--link mongo \
-p 33424:8080 \
-e API_ENDPOINT=https://dyndnsserverdomain/api \
-e CLIENT_ENDPOINT=https://dyndnsserverdomain \
-e SPOTIFY_PUBLIC=eurepublicid \
-e SPOTIFY_SECRET=eurepublicidsecret \
-e CORS=all \
--restart always \
yooooomi/your_spotify_server

You must fill in the API and CLIENT endpoint according to your settings.

In the same way, you must take your Spotify PUBLIC and SECRET data from your developer account. Links to this are a little further down.

When filling in the data in the configuration on the Spotify page, it is important to fill in the correct redirect URI.

https://dyndnsserverdomain/api/oauth/spotify/callback
docker run -d --name=your_spotify_client \
-p 17812:3000 \
-e API_ENDPOINT=https://dyndnsserverdomain/api \
yooooomi/your_spotify_client

Please make sure to fill in your API endpoint correctly here too.

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name spotify.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;


	location /api/ {
        # enable the next two lines for http auth
        auth_basic "Restricted";
        auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
		proxy_pass http://192.168.178.20:33424/;
	}

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app holodeck;
        set $upstream_port 17812;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;		
		#proxy_pass http://192.168.178.20:17812/;
    }
}

SWAG example conf file for your_spotify.

Used Links

TZ – Timezone

Random Number (for a port number by random generator)

your_spotify @GitHub

Spotify Developer Dashboard (an application must be created here to get an API key)

Spotify Account Privacy (to request the past history)

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments