Skip to content

Commit

Permalink
Nginx disable server tokens
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi committed May 6, 2024
1 parent a602a8e commit 4de70d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export class OpenSearchMetricsNginxCognito extends Construct {
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
server_tokens off;
add_header Strict-Transport-Security "max-age=47304000; includeSubDomains";
add_header X-Content-Type-Options "nosniff";
Expand Down
1 change: 1 addition & 0 deletions infrastructure/lib/stacks/opensearchNginxProxyReadonly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export class OpenSearchMetricsNginxReadonly extends Stack {
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
server_tokens off;
add_header Strict-Transport-Security "max-age=47304000; includeSubDomains";
add_header X-Content-Type-Options "nosniff";
Expand Down

0 comments on commit 4de70d1

Please sign in to comment.