mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
3fea149353
- Adds a new page for importing custom songs, where it is possible to pick a local folder (desktop only) or a Google Drive folder (desktop and Android) - This feature is disabled on iOS due to the lack of OGG audio support in the browser - In order to not get rate limited, a TJA file is parsed for metadata only when the song is clicked in the song selection, rather than all at once at import time - The instance maintainer will need to provide the API credentials in the config.py file to enable this feature - This requires a new project to be created at console.cloud.google.com - Drive API will have to be enabled - API and OAuth keys should be created - API key can be restricted to only have Google Drive and Google Picker APIs - OAuth Client ID should have Web Application type and JavaScript origins set - Editing the OAuth consent screen to have a name and icon is recommended - It is semi-required to submit the consent screen for verification as the permission to download all of the Drive files will be asked. - Note that the email of the maintainer is publicly visible on the consent screen - The project number can be found in the IAM & Admin settings page
44 lines
953 B
Python
44 lines
953 B
Python
# The full URL base asset URL, with trailing slash.
|
|
ASSETS_BASEURL = ''
|
|
|
|
# The full URL base song URL, with trailing slash.
|
|
SONGS_BASEURL = ''
|
|
|
|
# The email address to display in the "About Simulator" menu.
|
|
EMAIL = 'taiko@example.com'
|
|
|
|
# Whether to use the user account system.
|
|
ACCOUNTS = True
|
|
|
|
# Custom JavaScript file to load with the simulator.
|
|
CUSTOM_JS = ''
|
|
|
|
# MongoDB server settings.
|
|
MONGO = {
|
|
'host': ['127.0.0.1:27017'],
|
|
'database': 'taiko'
|
|
}
|
|
|
|
# Redis server settings, used for sessions + cache.
|
|
REDIS = {
|
|
'CACHE_TYPE': 'redis',
|
|
'CACHE_REDIS_HOST': '127.0.0.1',
|
|
'CACHE_REDIS_PORT': 6379,
|
|
'CACHE_REDIS_PASSWORD': None,
|
|
'CACHE_REDIS_DB': None
|
|
}
|
|
|
|
# Secret key used for sessions.
|
|
SECRET_KEY = 'change-me'
|
|
|
|
# Git repository base URL.
|
|
URL = 'https://github.com/bui/taiko-web/'
|
|
|
|
# Google Drive API.
|
|
GOOGLE_CREDENTIALS = {
|
|
'gdrive_enabled': False,
|
|
'api_key': '',
|
|
'oauth_client_id': '',
|
|
'project_number': ''
|
|
}
|