From 29f111e98f0b6fe3a7646b2f86cee293b78feb5b Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Mon, 6 Aug 2018 16:52:49 +0300 Subject: [PATCH] sess key --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index bb6fd80..9a727f9 100644 --- a/app.py +++ b/app.py @@ -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()