diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -14,6 +14,10 @@ def create_app(test_config=None): | |||
| 14 | app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/') | 14 | app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/') |
| 15 | app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB | 15 | app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB |
| 16 | app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates' | 16 | app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates' |
| 17 | app.config['SWAGGER'] = { | ||
| 18 | 'title': 'Mat2 Web API', | ||
| 19 | 'version': '1.0.0', | ||
| 20 | } | ||
| 17 | # optionally load settings from config.py | 21 | # optionally load settings from config.py |
| 18 | app.config.from_object('config') | 22 | app.config.from_object('config') |
| 19 | 23 | ||
