sess key
This commit is contained in:
parent
b244845297
commit
29f111e98f
4
app.py
4
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()
|
||||
|
Reference in New Issue
Block a user