Song requires an object storage backend to store data files. A Score server must be configured for use with Song. Score is compatible with various S3 API-compliant backends such as AWS, Azure, and MinIO.
To enable Song's integration with the Score server, specify the Score storage backend in your Song server configuration. Once your Score server is set up, you can establish the connection with your Song configuration.
To configure Score, modify your .env
as follows:
# Score Server ConfigurationSCORE_ACCESS_TOKEN=ad83ebde-a55c-11e7-abc4-cec278b6b50aSCORE_URL=http://localhost:8087
The score
section above is required and contains the connection details to the score-server. Input your score-server URL and an API Key that has both upload and download permission scopes. An API Key is owned by a user and has an expiry, so it must be updated regularly.
The Score client credentials are optional and provide a way to authenticate through a JWT instead of an API Key. If these configurations are enabled, the default settings defined under score
will be overwritten.
# Score Client CredentialsSPRING_PROFILES_ACTIVE=score-client-credSCORE_CLIENTCREDENTIALS_ID={{client-id-from-Ego}}SCORE_CLIENTCREDENTIALS_SECRET={{client-secret-from-Ego}}SCORE_CLIENTCREDENTIALS_TOKENURL=http://ego-api:8080/oauth/tokenSCORE_CLIENTCREDENTIALS_SYSTEMSCOPE=score.WRITE
Make sure to replace placeholders like {{client-id-from-Ego}}
or {{client-secret-from-Ego}}
with your actual values.