Increase the waitress threads number to 16
This commit is contained in:
parent
9d44a0a2ca
commit
87ca707851
2 changed files with 3 additions and 3 deletions
|
@ -19,4 +19,4 @@ COPY . .
|
|||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD [ "waitress-serve", "--port=8080", "--call", "api:create_app"]
|
||||
CMD [ "waitress-serve", "--port=8080", "--threads=16", "--call", "api:create_app"]
|
|
@ -229,7 +229,7 @@ scheduler.get_job('core_api_sync').modify(next_run_time=datetime.now())
|
|||
# Start the scheduler
|
||||
scheduler.start()
|
||||
|
||||
## Flask
|
||||
### Flask ###
|
||||
# Frontend
|
||||
@app.route('/', methods=['GET'])
|
||||
def root_route():
|
||||
|
@ -246,7 +246,7 @@ def root_route():
|
|||
thumbnails = [file for file in os.listdir(f'{rec_path}/thumb/') if file.endswith('.png')]
|
||||
return render_template('index.html', now=datetime.utcnow(), video_files=video_files, thumbnails=sorted_thumbnails)
|
||||
|
||||
# API
|
||||
# JSON Data
|
||||
@app.route('/playhead', methods=['GET'])
|
||||
def playhead_route():
|
||||
global playhead
|
||||
|
|
Loading…
Add table
Reference in a new issue