This commit is contained in:
Evert Prants 2018-08-06 16:52:49 +03:00
parent b244845297
commit 29f111e98f
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 3 additions and 1 deletions

4
app.py
View File

@ -39,6 +39,7 @@ config['Streaming'] = {
'StreamServer': 'https://tv.icynet.eu/live/',
'ServerHost': 'icynet.eu',
'PublishAddress': 'rtmp://{host}:1935/hls-live/{streamer}',
'Secret': 'changeme',
}
config['Auth'] = {
'Server': 'http://localhost:8282',
@ -58,6 +59,8 @@ with open('config.ini', 'w') as configfile:
# App settings
app = Flask(__name__)
app.secret_key = config['Streaming']['Secret']
app.config['SESSION_TYPE'] = 'redis'
auth_image = "{server}/api/avatar/{uuid}"
oauth_auth = "{server}/oauth2/authorize?response_type=code&state={state}&redirect_uri={redirect}&client_id={client}&scope=image"
@ -275,6 +278,5 @@ def dist(path):
if __name__ == '__main__':
app.secret_key = '00-wegrhr[gqw[er=1ew qwergfdq.///**+'
app.config['SESSION_TYPE'] = 'redis'
app.debug = True
app.run()