Skip to content

Commit

Permalink
Merge branch 'develop' into feature/semi-auto-tag-annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
omerferhatt authored May 2, 2024
2 parents bb7ae62 + ce5e07c commit 841323d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog.d/20240429_124319_jackylamhk_patch_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Security

- Disable the nginx server signature by default to make it slightly harder for attackers to find known vulnerabilities.
(<https://github.com/cvat-ai/cvat/pull/7814>)
5 changes: 5 additions & 0 deletions cvat-ui/react_nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
server {
root /usr/share/nginx/html;

# Disable server signature to make it slighty harder for
# attackers to find known vulnerabilities. See
# https://datatracker.ietf.org/doc/html/rfc9110#name-server
server_tokens off;

gzip on;
gzip_comp_level 6;
gzip_http_version 1.1;
Expand Down
5 changes: 5 additions & 0 deletions cvat/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ http {

server_name _;

# Disable server signature to make it slighty harder for
# attackers to find known vulnerabilities. See
# https://datatracker.ietf.org/doc/html/rfc9110#name-server
server_tokens off;

location /static/ {
gzip on;
gzip_comp_level 6;
Expand Down

0 comments on commit 841323d

Please sign in to comment.