Skip to content

Commit

Permalink
add security headers config file
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesreid1 committed Jun 26, 2020
1 parent e0758ee commit 05dd6ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conf.d/secheaders.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
server_tokens off;

add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";

client_max_body_size 100m;

0 comments on commit 05dd6ef

Please sign in to comment.