Added server_tokens in server and removed server_tokens from other places
@@ -24,7 +24,7 @@ server {
server {
listen *:443 ssl;
-
+ server_tokens off;
ssl_certificate /etc/ssl/st2/st2.crt;
ssl_certificate_key /etc/ssl/st2/st2.key;
ssl_session_cache shared:SSL:10m;
@@ -54,7 +54,6 @@ server {
error_page 502 = @apiError;
rewrite ^/api/(.*) /$1 break;
- server_tokens off;
proxy_pass http://127.0.0.1:9101/;
proxy_read_timeout 90;
@@ -96,7 +95,6 @@ server {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
- server_tokens off;
# Disable buffering and chunked encoding.
# In the stream case we want to receive the whole payload at once, we don't
@@ -116,7 +114,6 @@ server {
error_page 502 = @authError;
rewrite ^/auth/(.*) /$1 break;
- server_tokens off;
proxy_pass http://127.0.0.1:9100/;
proxy_read_timeout 90;
