-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.py-sample
38 lines (27 loc) · 950 Bytes
/
config.py-sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import os
# Replace with Spotify API application settings
# Leave blank for MP3 only mode.
CLIENT_ID = ""
CLIENT_SECRET = ""
# Settings below this line can be left at their defaults.
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
SESSION_COOKIE_DOMAIN = ""
SERVER_NAME = "localhost:5000"
# Spotify redirect uri. The expanded var must match
# the same in the Spotify app settings.
REDIRECT_URI = "http://%s/callback" % SERVER_NAME
# Statement for enabling the development environment
DEBUG = True
# Application threads.
THREADS_PER_PAGE = 2
# Enable protection agains *Cross-site Request Forgery (CSRF)*
CSRF_ENABLED = True
# Use a secure, unique and absolutely secret key for
# signing the data.
CSRF_SESSION_KEY = os.urandom(12)
# Secret key for signing cookies
SECRET_KEY = os.urandom(24)
# Renders the now playing album art to an external site too
NOWPLAYING_URL = ""
NOWPLAYING_TOKEN = ""