Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to read spotify credentials from env variables #25

Open
TribuneX opened this issue Dec 8, 2018 · 0 comments
Open

Support to read spotify credentials from env variables #25

TribuneX opened this issue Dec 8, 2018 · 0 comments

Comments

@TribuneX
Copy link
Contributor

TribuneX commented Dec 8, 2018

I tried to use env variables in my config.json:

"spotify": {
            "clientID": "${SPOTIFY_CLIENT_ID}",
            "clientSecret": "${SPOTIFY_CLIENT_SECRET}"
        }

I tried to set these variables on my docker host and pass them to the container with these settings in my docker-compose.yml:

environment: 
        - SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
        - SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}

But magic-cards was unable to get the token from spotify then. I assume that the variables within the config are not resolved by magic-cards at startup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant