-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
19 lines (16 loc) · 1.14 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
JSON_SORT_KEYS = False
SCHEDULER_API_ENABLED = False
SITE_URL = os.environ.get('SITE_URL', 'https://example.com')
SITE_TITLE = os.environ.get('SITE_TITLE', 'My Radio')
SITE_DESCRIPTION = os.environ.get('SITE_DESCRIPTION', 'Our selection of music') # NOQA: E501
SECRET_KEY = os.environ.get('SECRET_KEY', 'you-will-never-guess')
ICECAST_STREAM_URL = os.environ.get('ICECAST_STREAM_URL', 'http://radio.social.net.ua/live.mp3') # NOQA: E501
ICECAST_STREAM_BITRATE = os.environ.get('ICECAST_STREAM_BITRATE', '128') # NOQA: E501
ICECAST_STATUS_JSON_URL = os.environ.get('ICECAST_STATUS_JSON_URL', 'http://radio.social.net.ua/status-json.xsl') # NOQA: E501
STATUS_HISTORY_FILE = os.environ.get('STATUS_HISTORY_FILE', os.path.join(basedir, 'icestats_history.json')) # NOQA: E501
FEDIVERSE_URL = os.environ.get('FEDIVERSE_URL', 'https://social.net.ua')
GITHUB_URL = os.environ.get('GITHUB_URL', 'https://github.com/uanet-exception/radio.social.net.ua')
XMPP_URL = os.environ.get('XMPP_URL', 'xmpp:[email protected]?join')