Skip to content

Commit

Permalink
apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed May 26, 2023
1 parent fc11737 commit 7447863
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ RUN --mount=type=bind,from=build-image,source=/tmp/wheelhouse,target=/mnt/wheelh
ENV NUMPROCS=1
COPY --from=build-image-av /opt/ffmpeg/lib /usr/lib

RUN chown -R ${USER} /var/lib/nginx /var/log/nginx

# These variables are required for supervisord substitutions in files
# This library allows remote python debugging with VS Code
ARG CVAT_DEBUG_ENABLED
Expand Down
14 changes: 12 additions & 2 deletions cvat/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ events {
worker_connections 512;
}

error_log /home/django/logs/nginx_error.log;

http {

##
Expand All @@ -19,12 +21,21 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

##
# Override default tmp paths to be run nginx from non-root user
##

proxy_temp_path /tmp/nginx_proxy;
uwsgi_temp_path /tmp/nginx_uwsgi;
scgi_temp_path /tmp/nginx_scgi;
fastcgi_temp_path /tmp/nginx_fastcgi;
client_body_temp_path /tmp/nginx_body;

##
# Logging Settings
##

access_log /home/django/logs/nginx_access.log;
error_log /home/django/logs/nginx_error.log;

##
# CVAT Settings
Expand All @@ -42,7 +53,6 @@ http {
gzip_comp_level 6;
gzip_http_version 1.1;
gzip_types
text/html
application/javascript
application/x-javascript
text/javascript
Expand Down

0 comments on commit 7447863

Please sign in to comment.