diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -10,7 +10,7 @@ from flask_cors import CORS | |||
| 10 | def create_app(test_config=None): | 10 | def create_app(test_config=None): |
| 11 | app = Flask(__name__) | 11 | app = Flask(__name__) |
| 12 | app.config['SECRET_KEY'] = os.urandom(32) | 12 | app.config['SECRET_KEY'] = os.urandom(32) |
| 13 | app.config['UPLOAD_FOLDER'] = './uploads/' | 13 | app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/') |
| 14 | app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB | 14 | app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB |
| 15 | app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates' | 15 | app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates' |
| 16 | # optionally load settings from config.py | 16 | # optionally load settings from config.py |
