mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
7d818877f8
- Add support for plugin settings, they appear in the same menu as the plugins, indented from the left to emphasize which plugin the setting belongs to - Note that plugin settings can still be changed even when the plugins are stopped - Add tooltips to plugin menu to view the plugin descriptions, description_lang can also be used - Fix scolling not working on song select when returning from game settings - Let instance owners set default plugin files in config.py, to make them easier to maintain - plugins.add() can now add plugins using a url - Plugins can be hidden from the plugin menu using PluginLoader.hide, an option in plugins.add(), or in config.py - Make p2.disable() incremental so that multiple plugins can disable multiplayer independently - Server no longer crashes if certain optional config fields were not copied over from an updated example config - Fix not being able to unload plugins if one was imported with errors
55 lines
1.1 KiB
Python
55 lines
1.1 KiB
Python
# The full URL base asset URL, with trailing slash.
|
|
ASSETS_BASEURL = '/assets/'
|
|
|
|
# The full URL base song URL, with trailing slash.
|
|
SONGS_BASEURL = '/songs/'
|
|
|
|
# The email address to display in the "About Simulator" menu.
|
|
EMAIL = None
|
|
|
|
# Whether to use the user account system.
|
|
ACCOUNTS = True
|
|
|
|
# Custom JavaScript file to load with the simulator.
|
|
CUSTOM_JS = ''
|
|
|
|
# Default plugins to load with the simulator.
|
|
PLUGINS = [{
|
|
'url': '',
|
|
'start': False,
|
|
'hide': False
|
|
}]
|
|
|
|
# Filetype to use for song previews. (mp3/ogg)
|
|
PREVIEW_TYPE = 'mp3'
|
|
|
|
# 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': '',
|
|
'min_level': None
|
|
}
|