allow 2p url config, origin limiting for server

This commit is contained in:
Bui
2022-03-24 02:32:31 +00:00
parent 0c39e54d90
commit 7f511abb4f
4 changed files with 14 additions and 4 deletions

3
app.py
View File

@@ -135,7 +135,8 @@ def get_config(credentials=False):
'accounts': take_config('ACCOUNTS'),
'custom_js': take_config('CUSTOM_JS'),
'plugins': take_config('PLUGINS') and [x for x in take_config('PLUGINS') if x['url']],
'preview_type': take_config('PREVIEW_TYPE') or 'mp3'
'preview_type': take_config('PREVIEW_TYPE') or 'mp3',
'multiplayer_url': take_config('MULTIPLAYER_URL')
}
if credentials:
google_credentials = take_config('GOOGLE_CREDENTIALS')