embedded bots: Add database config storage.

Storage limititations are only set on the value of
a config entry, since this is the only user-accessible
part of the schema. Keys are statically set by each
embedded bot.
This commit is contained in:
derAnfaenger
2017-11-01 20:51:12 +01:00
committed by Tim Abbott
parent 35e60d5e14
commit 395f1e9270
6 changed files with 126 additions and 9 deletions

View File

@@ -162,6 +162,8 @@ DEFAULT_SETTINGS = {
# Max state storage per user
# TODO: Add this to zproject/prod_settings_template.py once stateful bots are fully functional.
'USER_STATE_SIZE_LIMIT': 10000000,
# Max size of a single configuration entry of an embedded bot.
'BOT_CONFIG_SIZE_LIMIT': 10000,
# External service configuration
'CAMO_URI': '',