forked from Groestlcoin/groestltip-streamlabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
23 lines (16 loc) · 797 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
configfile = os.path.join(basedir, 'config.ini')
import configparser
Config = configparser.ConfigParser()
Config.read(configfile)
CSRF_ENABLED = True
SECRET_KEY = Config.get('CoinStream','secret_key')
# Streamlabs Keys, These are only for the testapp, replace when in production
STREAMLABS_CLIENT_ID = Config.get('CoinStream','streamlabs_client_id')
STREAMLABS_CLIENT_SECRET = Config.get('CoinStream','streamlabs_client_secret')
COINSTREAM_REDIRECT_URI = Config.get('CoinStream', 'redirect_uri')
SQLALCHEMY_DATABASE_URI = ('sqlite:///' + os.path.join(basedir, 'app.db') +
'?check_same_thread=False')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')