diff --git a/src/api/Dockerfile b/src/api/Dockerfile index 211ab6b..3fb76e9 100644 --- a/src/api/Dockerfile +++ b/src/api/Dockerfile @@ -19,4 +19,4 @@ COPY . . EXPOSE 8080 -CMD [ "waitress-serve", "--port=8080", "--trusted-proxy='*'", "--trusted-proxy-headers=forwarded", "--log-untrusted-proxy-headers", "--threads=16", "--call", "api:create_app" ] \ No newline at end of file +CMD [ "waitress-serve", "--port=8080", "--trusted-proxy", "'*'", "--trusted-proxy-headers", "'forwarded'", "--log-untrusted-proxy-headers", "--threads", "16", "--call", "api:create_app" ] \ No newline at end of file diff --git a/src/api/api.py b/src/api/api.py index 30aa6d5..d6e6fd9 100644 --- a/src/api/api.py +++ b/src/api/api.py @@ -299,7 +299,6 @@ def video_watch_route(video_file_no_extension): abort(404) if not os.path.exists(thumb_path): thumb_file = "" - remote_client = request.environ logger_content.warning('[' + client_address(request) + '] player' + str(video_path)) return render_template('watch.html', video_file=video_file, thumb_file=thumb_file)