Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmujtabaraza committed Aug 31, 2021
1 parent 983d1d3 commit 084f713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ DEBUG=True
DATABASE_URL=sqlite:///files/data.db
OPENCV_VIDEO_SOURCE=0
SECRET_KEY=change-this-key
JWT_SECRET_KEY=change-this-key-to-something-different
JWT_SECRET_KEY=change-this-key-to-something-different
# 2 MB max size upload (2 * 1024 * 1024)
MAX_CONTENT_LENGTH=2097152
3 changes: 1 addition & 2 deletions backend/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from flask_restful import Api
from flask_jwt_extended import JWTManager
from flask_cors import CORS
from flask_uploads import configure_uploads, patch_request_class
from flask_uploads import configure_uploads
from marshmallow import ValidationError

from src.libs.image_helper import IMAGE_SET
Expand All @@ -18,7 +18,6 @@
app = Flask(__name__)
app.config.from_object("src.settings.FlaskAppConfiguration")
api = Api(app)
patch_request_class(app, 2 * 1024 * 1024) # 2 MB max size upload
configure_uploads(app, IMAGE_SET)
jwt = JWTManager(app)
cors = CORS(app)
Expand Down

0 comments on commit 084f713

Please sign in to comment.