mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-06-24 14:20:34 -04:00
made upload folder configurable
This commit is contained in:
parent
ac21ea756c
commit
b7cd80d155
3 changed files with 14 additions and 13 deletions
2
main.py
2
main.py
|
@ -10,7 +10,7 @@ from flask_cors import CORS
|
|||
def create_app(test_config=None):
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = os.urandom(32)
|
||||
app.config['UPLOAD_FOLDER'] = './uploads/'
|
||||
app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/')
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB
|
||||
app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates'
|
||||
# optionally load settings from config.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue