Skip to content

Commit

Permalink
fix[security]: Disable server_tokens for React nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylamhk authored May 2, 2024
1 parent 3b62fe2 commit 3c84acb
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 3c84acb

Please sign in to comment.