summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorJan Friedli2020-03-31 20:33:06 +0200
committerJan Friedli2020-05-09 21:21:49 +0200
commitb7cd80d155a8b3e1ebc5607b046544d45cf1921f (patch)
treea1b3bebda04bcea9fbf6d801ddeeaceaf9fcd81a /main.py
parentac21ea756c18453954cdc87e9d33a9676ef48066 (diff)
made upload folder configurable
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index db186d1..5c7f8e7 100644
--- a/main.py
+++ b/main.py
@@ -10,7 +10,7 @@ from flask_cors import CORS
10def create_app(test_config=None): 10def 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